npm.io
1.0.0 • Published 5 years ago

@janbican/caesar-cipher

Licence
ISC
Version
1.0.0
Deps
0
Size
1 kB
Vulns
0
Weekly
0

What is this?

Encrypt and decrypt messages with Caesar Cipher.

Installation

npm i @janbican/caesar-cipher

Usage

import { encrypt, decrypt } from '@janbican/caesar-cipher'

const cipherText = encrypt('helloworld', 3)
const plainText = decrypt(cipherText, 3)

console.log(cipherText)
console.log(plainText)