ROT13 Encode/Decode

Encode or decode a string using the ROT13 cipher, where the same operation is used for both encoding and decoding.

Code

Utilities
import codecs
return codecs.encode(str, 'rot_13')

Parameters

The string to encode/decode.

Server

More Python Snippets