mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
fix: chrome for windows decrypt error. Close #21
This commit is contained in:
@@ -19,7 +19,7 @@ var (
|
||||
func aes128CBCDecrypt(key, iv, encryptPass []byte) ([]byte, error) {
|
||||
block, err := aes.NewCipher(key)
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
return nil, err
|
||||
}
|
||||
dst := make([]byte, len(encryptPass))
|
||||
mode := cipher.NewCBCDecrypter(block, iv)
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user