Skip to content

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

License

Notifications You must be signed in to change notification settings

manojpandey/rc4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages