rc4-cipher

1.0.0 • Public • Published

RC4-Cipher Encryption and Decryption

Build Status

In cryptography, RC4 is a stream cipher. While it is remarkable for its simplicity and speed in software, multiple vulnerabilities have been discovered in RC4, rendering it insecure. It is especially vulnerable when the beginning of the output keystream is not discarded, or when nonrandom or related keys are used.

  • Easy to implement
  • Seperate functions for Encrypt and Decrypt
  • Light weight

Installation

RC4-Cipher requires Node.js v4+ to run.

Install the package.

$ cd your-root-directory
$ npm install rc4-cipher

Usage example...

//import
const rc4 = require('rc4-cipher');

//encrypt
const encryptedString = rc4.encrypt('ABC','key');

//decrypt
const decryptedString = rc4.decrypt(encryptedString, 'key');

//key - custom private key - default - rc4@123 

License

MIT

Free Software, Hell Yeah!

Package Sidebar

Install

npm i rc4-cipher

Weekly Downloads

121

Version

1.0.0

License

MIT

Unpacked Size

5.16 kB

Total Files

4

Last publish

Collaborators

  • lahiru_danushka