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
echo "$str" | tr 'A-Za-z' 'N-ZA-Mn-za-m'

Parameters

The string to encode/decode.

Server

More Bash Snippets