mirror of
https://github.com/moonD4rk/HackBrowserData
synced 2025-02-17 11:07:07 +00:00
* refactor: Refactor package names and imports for better code organization. * refactor: Package imports and variable types for consistency * chore: Disable unused-parameter rule in revive. * refactor: Refactor and organize data extraction and browserdata parse. * fix: rename wrong error message info
16 lines
369 B
Go
16 lines
369 B
Go
//go:build darwin
|
|
|
|
package crypto
|
|
|
|
func DecryptWithChromium(key, password []byte) ([]byte, error) {
|
|
if len(password) <= 3 {
|
|
return nil, ErrCiphertextLengthIsInvalid
|
|
}
|
|
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
|
|
}
|