Python icon indicating copy to clipboard operation
Python copied to clipboard

Add rc4 cipher

Open QuantumSoham opened this issue 8 months ago • 2 comments

Summary

Added an RC4 (Rivest Cipher 4) stream cipher algorithm under ciphers/ directory.

  • Implements KSA and PRGA phases.
  • Encrypts and decrypts using XOR.
  • Fully type hinted and documented.
  • Includes docstrings with doctests.
  • CLI support via argparse.

All style and type checks (pre-commit, ruff, mypy) have passed.

Issue

No linked issue. (New Algorithm)

QuantumSoham avatar Apr 27 '25 10:04 QuantumSoham

Should this be tested using doctest?

Charuvarthan avatar May 12 '25 14:05 Charuvarthan

Should this be tested using doctest?

no not doctest run using python rc4.py encrypt Key Plaintext or python rc4.py decrypt Key bbf316e8d940af0ad3

QuantumSoham avatar May 12 '25 16:05 QuantumSoham

Closing tests_are_failing PRs to prepare for Hacktoberfest

cclauss avatar Oct 14 '25 07:10 cclauss