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
350 B
17 lines
350 B
2 years ago
|
//go:build darwin
|
||
|
|
||
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
|
||
3 years ago
|
}
|
||
2 years ago
|
|
||
|
iv := []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32}
|
||
|
return aes128CBCDecrypt(key, iv, encryptPass[3:])
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
func DPAPI(data []byte) ([]byte, error) {
|
||
3 years ago
|
return nil, nil
|
||
|
}
|