Skip to content

RC4C cipher, it's RC4 extension with two S-boxes on key and IV, and with 3 scrambling phases.

Notifications You must be signed in to change notification settings

schwarzlichtbezirk/rc4c-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rc4c-js

RC4C cipher, it's RC4 extension with two S-boxes on key and IV, and with 3 scrambling phases.

Download

Compress
Uncompress

Installation

You can also install rc4c by using Bower.

bower install rc4c-js

Usage

You can encrypt / decrypt message by single call rc4c(key, iv, str), or create object, then call setup-function and series of process calls.

let c = new rc4c() // create cipher instance
c.setup("some-key", "some-iv") // setup key and IV for encryption
let s = "" // temporary storage
s += c.process("abcd") // add 1 chunk
s += c.process("1234") // add 2 chunk
console.log(s) // display encrypted result

s = rc4c("some-key", "some-iv", s) // decrypt storage by single explicit call
console.log(s) // display decrypted original

At output you can see:

.bfD�Er
abcd1234

License

Author: © schwarzlichtbezirk ([email protected])
The project is released under the MIT license.

About

RC4C cipher, it's RC4 extension with two S-boxes on key and IV, and with 3 scrambling phases.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published