A functional JavaScript implementation of the Caesar cipher
npm install caesar-shift> A functional JavaScript implementation of the Caesar cipher
- Install with NPM - npm install --save caesar-shift
``javascript
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
Name | Type | Argument | Default | Description
--------|----------|--------------|---------|------------
key | number | | null | the key to encrypt the message withstring
message | | | null | the message to encrypt
Name | Type | Argument | Default | Description
--------|----------|--------------|---------|------------
key | number | | null | the key to decrypt the message withstring
message | | | null` | the encrpyted message to decrypt