@themythicalcoder/caesar-cipher-encryption
v1.1.0
Published
Encrypt and Decrypt Data using Caesar Cipher Encryption
Downloads
7
Maintainers
Readme
Caesar-Cipher-Encryption
This package allows you to Encrypt and Decrypt the given data using the ** Caesar Cipher Encryption**.
Docs!
Import the module and call the cipher function with the paramaeters.
Data : Data that need to be encrypted or decrypted. Shift : Shift value, eg: 2. Method : Encryption or Decryption
Use the encrypt
method to encrypt the data.
const cipher = require("caesar-cipher-encryption");
var encryptedText = cipher("data",5,encrypt);
console.log(encryptedText);
Use the decrypt
method to decrypt the data.
const cipher = require("caesar-cipher-encryption");
var decryptedText = cipher("data",5,decrypt);
console.log(decryptedText);