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.
17 lines
360 B
17 lines
360 B
2 years ago
|
//go:build linux
|
||
|
|
||
2 years ago
|
package crypto
|
||
3 years ago
|
|
||
3 years ago
|
func Chromium(key, encryptPass []byte) ([]byte, error) {
|
||
2 years ago
|
if len(encryptPass) < 3 {
|
||
|
return nil, errPasswordIsEmpty
|
||
|
}
|
||
|
|
||
|
chromeIV := []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32}
|
||
|
return aes128CBCDecrypt(key, chromeIV, encryptPass[3:])
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
func DPAPI(data []byte) ([]byte, error) {
|
||
3 years ago
|
return nil, nil
|
||
|
}
|