str_rot13

Performs the ROT13 transformation on a string and returns the resulting string.
Example: "string" → "fgevat".

Produces a result similar to the PHP function str_rot13()

The ROT13 transformation consists of a simple shift of each Latin letter by 13 positions in the alphabet, other characters remain unchanged. The reverse transformation is performed by the same function, as passing the encoded string as an argument will return its original version.