You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
505 B
21 lines
505 B
package decrypter
|
|
|
|
var (
|
|
errSecurityKeyIsEmpty = errors.New("input [security find-generic-password -wa 'Chrome'] in terminal")
|
|
)
|
|
|
|
func Chromium(key, encryptPass []byte) ([]byte, error) {
|
|
if len(encryptPass) <= 3 {
|
|
return nil, errPasswordIsEmpty
|
|
}
|
|
if len(key) == 0 {
|
|
return nil, errSecurityKeyIsEmpty
|
|
}
|
|
|
|
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) {
|
|
return nil, nil
|
|
}
|
|
|