Joseph Herlant
version 1.0.0, 2013-10-24 : Initial version

For more informations about ROT13, consult its dedicated Wikipedia page!

1. Encoding

This simple perl regexp encodes an input string or file following the ROT13 rules.

perl -pe 'tr/N-ZA-Mn-za-m/A-Za-z/'

2. Decoding

And this one decodes an input string or file following the ROT13 rules.

perl -pe 'tr/A-Za-z/N-ZA-Mn-za-m/'