mucomplex / rc4

Implementation of the stream cipher - RC4 (Rivest Cipher 4) using both Python 2.x and 3.x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rc4

Implementation of the stream cipher - RC4 (Rivest Cipher 4)

From Wikipedia

The RC4 Encryption Algorithm, developed by Ronald Rivest of RSA, is a shared key stream cipher algorithm requiring a secure exchange of a shared key. The symmetric key algorithm is used identically for encryption and decryption such that the data stream is simply XORed with the generated key sequence.

How it works:

alt text

How to run:

Python 2 version

$ python2 rc4-2.py
To run the tests
$ python2 -m pytest rc4-2.py

Python 3 version

$ python3 rc4-3.py
To run the tests
$ python3 -m pytest rc4-3.py

Licence

MIT | Copyright (c) 2017 Manoj Pandey

About

Implementation of the stream cipher - RC4 (Rivest Cipher 4) using both Python 2.x and 3.x

License:MIT License


Languages

Language:Python 100.0%