| Crates.io | why2 |
| lib.rs | why2 |
| version | 1.4.9 |
| created_at | 2025-09-29 18:50:10.656289+00 |
| updated_at | 2026-01-25 13:51:06.984109+00 |
| description | Lightweight, fast, secure, and easy to use encryption system. |
| homepage | https://why2.satan.red |
| repository | https://git.satan.red/ENGO150/WHY2 |
| max_upload_size | |
| id | 1860021 |
| size | 115,232 |
Lightweight, fast, secure, and easy to use encryption system.
use why2::{ encrypter, decrypter };
fn main()
{
let input = String::from("Hello world!");
// Encrypt input using 8x8 Grid, with random key
let encrypted = encrypter::encrypt_string::<8, 8>(&input, None)
.expect("Encryption failed");
// Print encrypted Grids
for grid in &encrypted.output
{
println!("{}", grid);
}
// Decrypt
let decrypted = decrypter::decrypt_string(encrypted)
.expect("Decryption failed");
// Compare input & output
assert_eq!(input, *decrypted);
}
For help, DM me directly on Discord :)
WHY2 is an experimental algorithm loosely inspired by AES. It has not undergone formal cryptographic audit. Use for educational purposes and personal privacy experiments, not for high-assurance systems or production environments where security is critical.