mirror of
https://github.com/moonD4rk/HackBrowserData
synced 2024-12-12 09:04:46 +00:00
536f2082f9
* 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
376 B
Go
16 lines
376 B
Go
//go:build linux
|
|
|
|
package crypto
|
|
|
|
func DecryptWithChromium(key, encryptPass []byte) ([]byte, error) {
|
|
if len(encryptPass) < 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, encryptPass[3:])
|
|
}
|
|
|
|
func DecryptWithDPAPI(_ []byte) ([]byte, error) {
|
|
return nil, nil
|
|
}
|