A npm module for easy encryption and decryption using the Caesar Cipher algorithm in JavaScript, ensuring secure text transmission.
npm install my-caesar-cipherjavascript
npm init
`
- Install the package by running ( in your terminal ) :
`javascript
npm install my-caesar-cipher
`
Usage
After installing the package, you can use it in your Node.js projects by requiring it.Write the below code under your index.js( or as your file name ) file.
- Import the package in your JavaScript file:
`javascript
const CaesarCipher = require('my-caesar-cipher');
`
- Create an instance of the CaesarCipher class:
`javascript
const cipher = new CaesarCipher();
`
- Use the encryption() and decryption() methods to encrypt and decrypt messages:
`javascript
// to encrypt a message
cipher.encryption();
// to decrypt a message
cipher.decryption();
``