removed ;
This commit is contained in:
parent
b25643fbb7
commit
0801ddfc54
2 changed files with 1 additions and 1 deletions
BIN
backup-2024-06-24-14:03:55-a.tar.gz
Normal file
BIN
backup-2024-06-24-14:03:55-a.tar.gz
Normal file
Binary file not shown.
|
@ -51,7 +51,7 @@ pub fn decrypt_file<P: AsRef<Path>>(file_path: P, key: &[u8]) -> Result<(), Cryp
|
||||||
println!("cipher_text: {:?}", cipher_text);
|
println!("cipher_text: {:?}", cipher_text);
|
||||||
let derived_key = derive_key(key);
|
let derived_key = derive_key(key);
|
||||||
println!("{:?}",derived_key);
|
println!("{:?}",derived_key);
|
||||||
let cipher = Aes256Gcm::new(GenericArray::from_slice(&derived_key));;
|
let cipher = Aes256Gcm::new(GenericArray::from_slice(&derived_key));
|
||||||
let nonce = GenericArray::from_slice(b"unique nonce"); // Must be the same nonce used for encryption
|
let nonce = GenericArray::from_slice(b"unique nonce"); // Must be the same nonce used for encryption
|
||||||
println!("{:?}", nonce);
|
println!("{:?}", nonce);
|
||||||
let plaintext = cipher
|
let plaintext = cipher
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue