Skip to content

mkauppila/rot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROT Cipher

A ROT cipher (and decipher) in C. Reads input from STDIN and writes to STDOUT. It (de)ciphers characters from space (0x20) to ~ (0x7E).

Usage

Usage:
rot [-c | -d] [-r number] < STDIN > STDOUT
  • -c - ciphers the input
  • -d - deciphers the input
  • -n number - how many characters to shift

Testing

Compile tests with make test and run ./test. If all goes well, it'll say "Tests OK!". If not, it'll greet you with assertion failures.

License

See the LICENSE file for license rights and limitations (MIT).

Releases

No releases published

Packages

No packages published