codecs library
import codecs
text = 'Hello'
rot13 = codecs.encode(text, 'rot_13')
print(rot13)
text = codecs.decode(rot13, 'rot_13')
print(text)
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