rc4 0.1.0 copy "rc4: ^0.1.0" to clipboard
rc4: ^0.1.0 copied to clipboard

outdated

Implementation of RC4-Drop algorithm. Base off of implementation done by myself previously http://bitflipgames.com/2010/08/10/rc4-encryption-in-c-and-python

Intro #

RC4 symmetric (drop frame) implementation base on previous work for BitFlip Games. Used when you need a simple but de/encryption that doesn't need the rigors of public key encryption.

Sample #

const String key = "This is a test"; const String message = "Attack at dawn!";

test('General Setup',(){
  RC4 rc4 = new RC4(key);
  var encrypted = rc4.encode(message);
  var decrypted = rc4.decode(encrypted);
  expect(encrypted,"TVwO6ouZIc8d2FjL5lf8");
  expect(decrypted,message);
});
0
likes
0
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

Implementation of RC4-Drop algorithm. Base off of implementation done by myself previously http://bitflipgames.com/2010/08/10/rc4-encryption-in-c-and-python

Homepage

License

unknown (license)

Dependencies

crypto, range, unittest

More

Packages that depend on rc4