Secret message :)


Secret message J

ROT-13 is a low-level encryption method that uses a swapping mechanism to change the appearance of character data. In it, the first 13 letters of the alphabet.
How to encode ?

>>> print  'This is playpython.bolgspot'.decode('rot13')
Guvf vf cynlclguba.obytfcbg

How to decode ?

>>> x = "Guvf vf cynlclguba.obytfcbg"
>>> x.decode("rot13")
u'This is playpython.bolgspot'

You can use codecs to encrypt also

import codecs
codecs.encode('some string', 'rot13')