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-06-05 06:51:37 +00:00
|
|
|
chromeIV := []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32}
|
2021-12-31 08:50:50 +00:00
|
|
|
if len(encryptPass) > 3 {
|
|
|
|
if len(key) == 0 {
|
|
|
|
return nil, errSecurityKeyIsEmpty
|
|
|
|
}
|
|
|
|
return aes128CBCDecrypt(key, chromeIV, encryptPass[3:])
|
|
|
|
} else {
|
|
|
|
return nil, errDecryptFailed
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func DPApi(data []byte) ([]byte, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|