SkillAgentSearch skills...

Rc4

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

Install / Use

/learn @manojpandey/Rc4
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars25
CategoryDevelopment
Updated9mo ago
Forks18

Languages

Python

Security Score

82/100

Audited on Jul 5, 2025

No findings