2022-08-16 11:30:53 +00:00
|
|
|
//go:build darwin
|
|
|
|
|
2023-03-10 06:52:26 +00:00
|
|
|
package crypto
|
2021-12-31 08:50:50 +00:00
|
|
|
|
2023-03-11 12:09:10 +00:00
|
|
|
var iv = []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32}
|
|
|
|
|
2023-03-12 06:23:54 +00:00
|
|
|
func DecryptPass(key, encryptPass []byte) ([]byte, error) {
|
2022-08-13 17:18:28 +00:00
|
|
|
if len(encryptPass) <= 3 {
|
|
|
|
return nil, errPasswordIsEmpty
|
2021-12-31 08:50:50 +00:00
|
|
|
}
|
2022-08-13 17:18:28 +00:00
|
|
|
return aes128CBCDecrypt(key, iv, encryptPass[3:])
|
2021-12-31 08:50:50 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 12:05:32 +00:00
|
|
|
func DPAPI(_ []byte) ([]byte, error) {
|
2021-12-31 08:50:50 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|