16 lines
372 B
Go
16 lines
372 B
Go
//go:build darwin
|
|
|
|
package crypto
|
|
|
|
func DecryptWithChromium(key, password []byte) ([]byte, error) {
|
|
if len(password) <= 3 {
|
|
return nil, ErrCiphertextLengthIsInvalid
|
|
}
|
|
var iv = []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32}
|
|
return AES128CBCDecrypt(key, iv, password[3:])
|
|
}
|
|
|
|
func DecryptWithDPAPI(_ []byte) ([]byte, error) {
|
|
return nil, nil
|
|
}
|