New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

caesar-shift

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-shift

A functional JavaScript implementation of the Caesar cipher

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
12
-45.45%
Maintainers
1
Weekly downloads
 
Created
Source

caesar-shift Build Status

A functional JavaScript implementation of the Caesar cipher

Getting Started

  • Install with NPM - npm install --save caesar-shift

Usage

import { encrypt, decrypt } from 'caesar-shift';

// Encrypt a message
encrypt(6, 'My dogs name is Nico!'); //=> Se jumy tgsk oy Toiu!

// Decrypt a message
decrypt(6, 'Se jumy tgsk oy Toiu!'); //=> My dogs name is Nico!

#API

encrypt( key, message )

NameTypeArgumentDefaultDescription
keynumber<required>nullthe key to encrypt the message with
messagestring<required>nullthe message to encrypt

decrypt( key, message )

NameTypeArgumentDefaultDescription
keynumber<required>nullthe key to decrypt the message with
messagestring<required>nullthe encrpyted message to decrypt

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

License

Copyright (c) 2016 Jason Bellamy
Licensed under the MIT license.

Keywords

encryption

FAQs

Package last updated on 25 Jul 2016

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