pub fn decrypt_bytes(bytes: &[u8]) -> String {
    let ciphertext = EncryptedData::from_bytes(bytes).unwrap();
    let password = get_password(false);

    let plaintext = match ciphertext.decrypt(&password) {
        Ok(text) => text,
        Err(_) => {
            e!("Can't decrypt the file.");
            exit()
        }
    };

    String::from_utf8(plaintext).unwrap()
}
// Decrypt the file's bytes
Decrypt the file's bytes
Decrypt the file ' s bytes
pub fn decrypt_bytes(bytes: &[u8]) -> String {
    let ciphertext = EncryptedData::from_bytes(bytes).unwrap();
    let password = get_password(false);
    let plaintext = match ciphertext.decrypt(&password) {
        Ok(text) => text,
        Err(_) => {
            e!("Can't decrypt the file.");
            exit()
        }
    };
    String::from_utf8(plaintext).unwrap()
}
pub fn decrypt_bytes ( bytes : & [ u8 ] ) -> String { let ciphertext = EncryptedData :: from_bytes ( bytes ) . unwrap ( ) ; let password = get_password ( false ) ; let plaintext = match ciphertext . decrypt ( & password ) { Ok ( text ) => text , Err ( _ ) => { e ! ( " " ) ; exit ( ) } } ; String :: from_utf8 ( plaintext ) . unwrap ( ) }
Decrypt the file's bytes
Decrypt the file ' s bytes
bytes
&[u8]