encryptor 0.1.0

Password-based encryption for Web3 wallet seed phrases
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use encryptor::{CryptoError, decrypt, encrypt};

fn main() -> Result<(), CryptoError> {
    let msg = "alice bob chloe";
    let pass = "Abc@1234";

    let blob = encrypt(msg, pass)?;
    println!("Ciphertext: {}", blob);

    let back = decrypt(&blob, pass)?;
    println!("Plaintext : {}", back);
    Ok(())
}