Playing with ROT13 Encryption

Few days ago, I decided to build something. I ended up building a lite CMS for sharing jokes and stories with friends and foe 😀
It still in private Beta and I really do not know if I will be open sourcing it as it is kind of too basic.

I wrote a filter for the CMS that encrypt or encode abusive words using ROT13.
For example: “f*ck you” becomes “shpx lbh”

Introduction to ROT13

ROT13 (“rotate by 13 places”) is a simple letter substitution cipher that replaces a letter with the letter 13 letters after it in the alphabet.

ROT13 introduction
ROT13 replaces each letter by its partner 13 characters further along the alphabet. For example, HELLO becomes URYYB (or, reversing, URYYB becomes HELLO again).

Source: Wikipedia

Thanks to PHP str_rot13 string function, performing a rot13 transformation on a string is as simple as:


< ?php // shpx lbh str_rot13('fuck you'); ?>

Want to give ROT13 a spin, have fun with the Demo below.
sorry, i can’t get the demo to work via WordPress TinyMCE editor just yet. working on it.

Don’t miss out!
Subscribe to My Newsletter
Invalid email address