mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-07-16 21:57:19 +02:00
feat: Support decryption of Firefox 144+ (AES-256-CBC) (#498)
* feat: Support decryption of Firefox 144+ (AES-256-CBC) * docs: Add Firefox 144+ support to README
This commit is contained in:
@@ -11,6 +11,11 @@ import (
|
||||
|
||||
var ErrCiphertextLengthIsInvalid = errors.New("ciphertext length is invalid")
|
||||
|
||||
// AES128CBCDecrypt decrypts data using AES-CBC mode.
|
||||
// Note: Despite the function name, this supports all AES key sizes.
|
||||
// The Go standard library's aes.NewCipher automatically selects the AES variant
|
||||
// based on the key length: 16 bytes (AES-128), 24 bytes (AES-192), or 32 bytes (AES-256).
|
||||
// TODO: Rename to AESCBCDecrypt to avoid confusion about supported key lengths.
|
||||
func AES128CBCDecrypt(key, iv, ciphertext []byte) ([]byte, error) {
|
||||
block, err := aes.NewCipher(key)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user