bessie 0.0.1

an authenticated, chunked cipher based on BLAKE3
Documentation

Bessie is an authenticated, chunked cipher based on BLAKE3. It's still in the design stages, and it's not suitable for production use.

Examples

Encrypt a message.

# fn main() -> Result<(), Box<dyn std::error::Error>> {
let key = bessie::generate_key();
let ciphertext: Vec<u8> = bessie::encrypt(&key, b"hello world");
# Ok(())
# }

Decrypt that message.

# fn main() -> Result<(), Box<dyn std::error::Error>> {
# let key = bessie::generate_key();
# let ciphertext: Vec<u8> = bessie::encrypt(&key, b"hello world");
let plaintext: Vec<u8> = bessie::decrypt(&key, &ciphertext)?;
assert_eq!(b"hello world", &plaintext[..]);
# Ok(())
# }