a library for encrypting and decrypting text using the AES-GCM-SIV cipher
bash
cargo add nutek-cipher-lib
```rust use nutekcipherlib::aesgcmsiv::encrypt; use nutekcipherlib::aesgcmsiv::decrypt;
fn main() { let key = b"0123456789abcdef0123456789abcdef"; let nonce = b"123456123456"; let plaintext = b"Hello, world!"; let ciphertext = encrypt(plaintext, nonce, key); let decrypted = decrypt(key, nonce, &ciphertext).unwrap(); assert_eq!(plaintext, decrypted); } ```
non-commercial use only, see LICENSE