Skip to content

ENGO150/WHY2

Repository files navigation

WHY2

Build Status Codacy Badge Latest Version Docs Status

Lightweight, fast, secure, and easy to use encryption system.


Code Example

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);
}

Links:

Getting Help

For help, DM me directly on Discord :)

Warning

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.

License

WHY2 is licensed under the GNU GPLv3. You are free to use, modify, and redistribute it under the terms of the license. See https://www.gnu.org/licenses/ for details.

About

Lightweight, fast, secure, and easy to use encryption system.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •