Giter Site home page Giter Site logo

rot13-cipher's Introduction

rot13-cipher build

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 = 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 version of it.

FAQ

Where is ROT13 Cipher used ?

ROT13 is used in online forums as a means of hiding spoilers, punchlines, puzzle solutions, and offensive materials from the casual glance. ROT13 has inspired a variety of letter and word games online, and is frequently mentioned in newsgroup conversations.

Licese

MIT ยฉ Rocktim Saikia

rot13-cipher's People

Contributors

omgimalexis avatar rocktimsaikia avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.