Crypticy
This Rust crate provides functionalities for AES encryption using AES256 and SHA256 hashing.
Usage
Add this crate to your Cargo.toml file:
[dependencies]
crypticy = "*"
Then, you can use the crate in your Rust code as follows:
extern crate aes_encryption;
use aes_encryption::{generate_aes_key, aes_encrypt, aes_decrypt, sha256_hash};
fn main() {
let key = generate_aes_key();
let plaintext = b"Your data here";
let ciphertext = aes_encrypt(plaintext, &key);
let decrypted = aes_decrypt(&ciphertext, &key).unwrap();
let data = b"Your data here";
let hash = sha256_hash(data);
}
License
This crate is licensed under the MIT License.