Skip to content

Commit

Permalink
fix: windows chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Oct 5, 2023
1 parent ac1a1e2 commit fa4a748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rookie-rs/src/chromium.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn decrypt_encrypted_value(value: String, encrypted_value: &[u8], keys: Vec<Vec<

// Create a new AES block cipher.
for key in keys {
let key = Key::<Aes256Gcm>::from_slice(key.clone());
let key = Key::<Aes256Gcm>::from_slice(key.as_slice());
let cipher = Aes256Gcm::new(&key);
let nonce = GenericArray::from_slice(nonce); // 96-bits; unique per message
let plaintext = cipher.decrypt(nonce, ciphertext.as_ref()).or(Err("cant decrypt using key"))?;
Expand Down

0 comments on commit fa4a748

Please sign in to comment.