ROT13 Encode and Decode using Python

codecs library

import codecs

text = 'Hello'
rot13 = codecs.encode(text, 'rot_13')
print(rot13)

text = codecs.decode(rot13, 'rot_13')
print(text)

Leave a Comment

Cancel reply

Your email address will not be published.