Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 611 Bytes

README.md

File metadata and controls

42 lines (38 loc) · 611 Bytes

Rot Cipher

Rot Ciphers' encryption and decryption algorithm written in C.

Compile:

gcc rotcipher.c -o rot

Ask For Help:

rot -h

Output:

Usage: rot -s <string> -m (enc|dec) -r <int>     

Options:-
    -s  set data string     
    -m  set mode to encrypt or decrypt the message     
    -r  set rotate value [-1 to print all possibilities]

Encryption:

rot -s "Hack Teh World!" -m enc -r 10

Output:

Rkmu Dor Gybvn!

Decryption:

rot -s "Rkmu Dor Gybvn!" -m dec -r 10 

Output:

Hack Teh World!