Crate simple_crypt
source · [−]Expand description
Simple Crypt
simple-crypt is a high level library to encrypt and decrypt data
For security 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");