#rot #crypto #cipher #rot13 #rot25 #rot1

yanked rotcipher

ROT Cipher implementation in rust, rot1 to rot25

4 releases

0.1.3 Nov 27, 2021
0.1.2 Nov 27, 2021
0.1.1 Nov 27, 2021
0.1.0 Nov 27, 2021

#8 in #rot13

Custom license

14KB
169 lines

rotcipher-rs

ROT Cipher implementation in rust, supports rot1 to rot25.

Supported ROT ciphers

ROT1 up to ROT25, it is also possible to make custom ROT ciphers, and here's how:

use rotcipher::rot;

fn main() {
    let rot_cipher = rot("Hello World!", 55);
    println!("rot (55): {}", rot_cipher)
}

Example

use rotcipher::{rot4, rot13};

fn main() {
    let rot4_str = rot4!("Hello, World!");
    let rot13_str = rot13!("Hello, World!");

    println!("rot4: {}", rot4_str);
    println!("rot13: {}", rot13_str);
}

No runtime deps