caesar-encrypt

0.0.2 • Public • Published

caesar-encrypt Build Status

One of the simplest forms of encryption

Install

$ npm install --save caesar-encrypt

Usage

import { encrypt, decrypt } from 'caesar-encrypt'
 
encrypt('not-my-password', 1)
// => opu.nz.qbttxpse
 
decrypt('opu.nz.qbttxpse', 1)
// => not-my-password

API

caesarEncrypt

.encrypt(input, shift)

input

Type: string
Required

shift

Type: number
Required

shift should be a number between 1-26

.decrypt(input, shift)

input

Type: string
Required

shift

Type: number
Required

shift should be a number between 1-26

Understand Caesar Cipher

The Caesar cipher, also known as a shift cipher, is one of the simplest forms of encryption. It is a substitution cipher where each letter in the original message (called the plaintext) is replaced with a letter corresponding to a certain number of letters up or down in the alphabet. Learn more

Related

License

MIT © Bu Kinoshita

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.240latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.240
0.0.10

Package Sidebar

Install

npm i caesar-encrypt

Weekly Downloads

39

Version

0.0.2

License

MIT

Last publish

Collaborators

  • bukinoshita