You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fndecrypt_aes256(bytes:&[u8],passphrase:&str) -> Result<String, anyhow::Error>{let buf = Cursor::new(bytes);let msg = composed::message::Message::from_bytes(buf).context("Failed")?;let decryptor = msg
.decrypt_with_password(|| String::from(passphrase)).context("Decrypting the message")?;for msg in decryptor {let bytes = msg?.get_content()?.unwrap();let clear_text = String::from_utf8(bytes)?;returnOk(clear_text);}Err(anyhow::Error::msg("Failed to find message"))}
I couldn't find alternatives after looking through other Deserialization implementations or anything else (aside from maybe just using the SymmetricKeyAlgorithm decrypt method directly?)
The text was updated successfully, but these errors were encountered:
Encrypted with :
I attempted to decrypt with :
I couldn't find alternatives after looking through other Deserialization implementations or anything else (aside from maybe just using the
SymmetricKeyAlgorithm
decrypt method directly?)The text was updated successfully, but these errors were encountered: