Function decrypt
Source pub fn decrypt(
ciphertext: impl AsRef<[u8]>,
password: impl AsRef<str>,
) -> Result<Vec<u8>>
Expand description
Decrypts the ciphertext with the given password and returns the plaintext.
§Arguments
ciphertext: The ciphertext to decrypt
password: The password to use for the decryption
§Returns
The plaintext as bytes