Crate simple_crypt
source · [−]Expand description
Simple Crypt
simple_crypt is a high level library to encrypt and decrypt data
For encryption it uses AES-GCM-SIV-256 and Argon2
Usage
add this to Cargo.toml:
simple_crypt = "*"Examples
// Encrypting
use simple_crypt::encrypt;
let encrypted_data = encrypt(b"example text", "example passowrd").expect("Failed to encrypt");
// Decrypting
use simple_crypt::decrypt;
let data = decrypt(&encrypted_data, "example passowrd").expect("Failed to decrypt");