fix: find chromium key failed on windows

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2022-04-20 01:45:36 +08:00
parent 2de62ac1bb
commit 8c2f72ccb6
6 changed files with 29 additions and 35 deletions
@@ -112,7 +112,7 @@ func (c *YandexCreditCard) Parse(masterKey []byte) error {
return err
}
} else {
value, err = decrypter.ChromePass(masterKey, encryptValue)
value, err = decrypter.ChromePassForYandex(masterKey, encryptValue)
if err != nil {
return err
}
+2 -2
View File
@@ -129,10 +129,10 @@ func (c *YandexPassword) Parse(masterKey []byte) error {
if masterKey == nil {
password, err = decrypter.DPApi(pwd)
} else {
password, err = decrypter.ChromePass(masterKey, pwd)
password, err = decrypter.ChromePassForYandex(masterKey, pwd)
}
if err != nil {
log.Error(err)
log.Errorf("decrypt yandex password error %s", err)
}
}
if create > time.Now().Unix() {