parent
77991605b2
commit
147d57e8f4
@ -1,17 +1,17 @@ |
||||
package decrypter |
||||
|
||||
func Chromium(key, encryptPass []byte) ([]byte, error) { |
||||
if len(encryptPass) > 3 { |
||||
if len(encryptPass) <= 3 { |
||||
return nil, errPasswordIsEmpty |
||||
} |
||||
if len(key) == 0 { |
||||
return nil, errSecurityKeyIsEmpty |
||||
} |
||||
chromeIV := []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32} |
||||
return aes128CBCDecrypt(key, chromeIV, encryptPass[3:]) |
||||
} else { |
||||
return nil, errDecryptFailed |
||||
} |
||||
|
||||
iv := []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32} |
||||
return aes128CBCDecrypt(key, iv, encryptPass[3:]) |
||||
} |
||||
|
||||
func DPApi(data []byte) ([]byte, error) { |
||||
func DPAPI(data []byte) ([]byte, error) { |
||||
return nil, nil |
||||
} |
||||
|
@ -1,17 +1,17 @@ |
||||
package decrypter |
||||
|
||||
func Chromium(key, encryptPass []byte) ([]byte, error) { |
||||
chromeIV := []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32} |
||||
if len(encryptPass) > 3 { |
||||
if len(encryptPass) < 3 { |
||||
return nil, errPasswordIsEmpty |
||||
} |
||||
if len(key) == 0 { |
||||
return nil, errSecurityKeyIsEmpty |
||||
} |
||||
|
||||
chromeIV := []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32} |
||||
return aes128CBCDecrypt(key, chromeIV, encryptPass[3:]) |
||||
} else { |
||||
return nil, errDecryptFailed |
||||
} |
||||
} |
||||
|
||||
func DPApi(data []byte) ([]byte, error) { |
||||
func DPAPI(data []byte) ([]byte, error) { |
||||
return nil, nil |
||||
} |
||||
|
Loading…
Reference in new issue