fix chrome for windows decrypt error. Close #21

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-07-29 11:36:54 +08:00
parent 448a5d4666
commit 59f4c67f41
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"golang.org/x/crypto/pbkdf2"
)
func ChromePass(encryptPass, key []byte) ([]byte, error) {
func ChromePass(key, encryptPass []byte) ([]byte, error) {
if len(encryptPass) > 15 {
// remove prefix 'v10'
return aesGCMDecrypt(encryptPass[15:], key, encryptPass[3:15])