Created
May 14, 2012 11:40
-
-
Save ashwin/2693515 to your computer and use it in GitHub Desktop.
ROT13 in Python 3.x
This file contains 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
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