rot13-cipher
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

rot13-cipher build

ROT13 substitution cipher for Node.js. Example: foobarsbbone

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 = require('rot13-cipher');
 
rot13Cipher('hello world');
//=> 'uryyb jbeyq'
 
rot13Cipher('foo123bar');
//=> 'sbb123one'
 
rot13Cipher('foo!@bar')
//=> 'sbb!@one'
 
 rot13Cipher('uryyb jbeyq')
//=> 'hello world'

API

rot13Cipher(string)

Takes one string input and returns the encoded veersion of it.

Support

Package Sidebar

Install

npm i rot13-cipher

Weekly Downloads

114

Version

1.0.0

License

MIT

Unpacked Size

3.27 kB

Total Files

5

Last publish

Collaborators

  • rocktimsaikia