The ROT47 (Caesar cipher by 47 chars) is a simple character substitution cipher that replaces a character within the ASCII range [33, 126] with the character 47 character after it (rotation) in the ASCII table. It is an invertible algorithm i.e. applying the same algorithm to the input twice will get the origin text.
ROT47 is the easiest and yet powerful cipher! ROT47 basically makes text unreadable and does not require addtional space.
The ROT47 can be easily implemented by modern programming language in many many ways, e.g. using a lookup table. For example, the following PHP code uses strstr to convert the text by using a lookup table.
For more details, please refer to this post: The PHP str_rot47 implementation, and here is a PHP Rot47 Online Encoder/Decoder.
Alternatively, ROT47 can be implemented by computing directly the ROT47-ed ASCII of each given character.
If $_GET parameter s is not specified, this API will use the $_POST variable s instead.
curl -X POST https://helloacm.com/api/rot47/ -d "s=ROT47 Rocks!"
Someone is nice to wrap this up and provide it free in NPM (Node Package Manager) in NodeJS.
Just paste the HTML code, shown below, onto the site of your choice.