Created
November 1, 2016 18:14
-
-
Save FsDevNinja/c708ebfe24987d6bb5b37dd6d1320d28 to your computer and use it in GitHub Desktop.
Rot 13 encryption and decryption
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class String | |
def rot13 | |
self.tr!("A-Za-z", "N-ZA-Mn-za-m") | |
self | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment