Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

caesar-encrypt

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caesar-encrypt

One of the simplest forms of encryption

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
34
increased by25.93%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • save-me — :lock: Save anything

License

MIT © Bu Kinoshita

Keywords

FAQs

Package last updated on 26 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc