A chunk of quickly-conceived code that rotates a letter by an arbitrary number of places.
- Run make.
- That's about it, really.
W-why? :\
I guess if you reaaaaaally want to you can build this and then do this:
sudo install -m 755 rotXX /usr/local/bin
But...but why?
./rotXX [number of digits to rotate]
If the number of digits is not specified, rotXX defaults to 13. You know, like rot13. :D
If rotXX is executed as specified above, it'll pretty much behave the same way that cat
does, aside from that whole "substitution cipher" thing. Type something, hit ENTER, and
a bunch of gibberish will be thrown on the line. Use CTRL-C
to abort.
Alternatively, you can pipe things to rotXX
. If I wanted to rot18 a file called
my_journal.txt
, I could do the following (note, don't do this. Simple substitution
ciphers are easy to spot and easier to break):
cat my_journal.txt | rotXX 18