1.0.4 • Published 3 years ago

rc4-crypt v1.0.4

Weekly downloads
264
License
Ratus Unilicense ...
Repository
gitlab
Last release
3 years ago

rc4-crypt

Small rc4 cryptography library

Install

npm install --save rc4-crypt

Usage

Node.JS

const rc4 = require('rc4-crypt');

// Initialize encrypt/decrypt
// The keys need to match
let encrypt = rc4("ENCRYPTION KEY"),
    decrypt = rc4("ENCRYPTION KEY");

// The data we're about to encrypt
let plainData = "Hello World";

// Actually encrypt the data
let ciphertext = encrypt(plainData);

// Let's decrypt it again
let decrypted = decrypt(ciphertext);

// Show the result
console.log(decrypted);

Browser

This module does not directly work in the browser. You'll need to use a tool like browserify to make use it.

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.0.1

6 years ago

0.1.0

6 years ago