2022-08-16 11:30:53 +00:00
|
|
|
//go:build linux
|
|
|
|
|
2021-12-31 08:50:50 +00:00
|
|
|
package decrypter
|
|
|
|
|
2022-04-19 18:14:18 +00:00
|
|
|
func Chromium(key, encryptPass []byte) ([]byte, error) {
|
2022-08-13 17:18:28 +00:00
|
|
|
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:])
|
2021-12-31 08:50:50 +00:00
|
|
|
}
|
|
|
|
|
2022-08-13 17:18:28 +00:00
|
|
|
func DPAPI(data []byte) ([]byte, error) {
|
2021-12-31 08:50:50 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|