rot13-cipher
ROT13
substitution cipher for Node.js. Example:foobar
→sbbone
ROT13 is its own inverse. Meaning, to undo ROT13
, the same algorithm is applied, so the same action can be used for encoding and decoding.
Install
$ npm install rot13-cipher
Usage
const rot13Cipher = ; ;//=> 'uryyb jbeyq' ;//=> 'sbb123one' //=> 'sbb!@one' //=> 'hello world'
API
rot13Cipher(string)
Takes one string input and returns the encoded veersion of it.