sealable 0.0.1

Pluggable password-to-sealed-string encryption for secrets
Documentation
1
2
3
4
5
6
7
8
9
use sealable::prelude::*;

fn main() -> Result<(), sealable::Error> {
    let sealed = DefaultSealedBox::encrypt("my-password", b"hello world")?;
    println!("Sealed: {}", sealed);
    let plaintext = DefaultSealedBox::decrypt("my-password", &sealed)?;
    println!("Decrypted: {}", String::from_utf8_lossy(&plaintext));
    Ok(())
}