my-caesar-cipher

1.0.0 • Public • Published

Secure-Text-Javascript

The npm package that provides a simple yet effective tool for encrypting and decrypting messages using the classic Caesar Cipher algorithm in JavaScript. This package ensures secure text transmission and cryptography for your applications.

Installation

  • Navigate to the directory where you want to use the package.
  • Initialize npm by running ( in your terminal ) :
    npm init
  • Install the package by running ( in your terminal ) :
    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:
    const CaesarCipher = require('my-caesar-cipher');
  • Create an instance of the CaesarCipher class:
    const cipher = new CaesarCipher();
  • Use the encryption() and decryption() methods to encrypt and decrypt messages:
    // to encrypt a message
    cipher.encryption();
    // to decrypt a message
    cipher.decryption();
  • Follow the prompts in the terminal to input the message and encryption/decryption key.

License

This package is licensed under the Apache 2.0 License.

Package Sidebar

Install

npm i my-caesar-cipher

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

15.9 kB

Total Files

4

Last publish

Collaborators

  • mayankanand2701