Skip to content

Instantly share code, notes, and snippets.

@ashwin
Created May 14, 2012 11:40
Show Gist options
  • Save ashwin/2693515 to your computer and use it in GitHub Desktop.
Save ashwin/2693515 to your computer and use it in GitHub Desktop.
ROT13 in Python 3.x
import codecs
s = "Hello"
enc = codecs.getencoder( "rot-13" )
os = enc( s )[0]
print( os ) # "Uryyb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment