Skip to content

Instantly share code, notes, and snippets.

@FsDevNinja
Created November 1, 2016 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FsDevNinja/c708ebfe24987d6bb5b37dd6d1320d28 to your computer and use it in GitHub Desktop.
Save FsDevNinja/c708ebfe24987d6bb5b37dd6d1320d28 to your computer and use it in GitHub Desktop.
Rot 13 encryption and decryption
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