Python/ciphers
Arshdeep Singh Sachdeva d59cf1734f
Add running key cipher (#10834)
* Add running key cipher

* update running key cipher add doctests and hints

* Add test case

* Update return value

* range(len()) is almost always a hint to use enumerate()

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
2023-10-29 15:55:37 +01:00
..
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
a1z26.py from __future__ import annotations (#4763) 2021-09-22 23:11:51 +02:00
affine_cipher.py Removed redundant greatest_common_divisor code (#9358) 2023-10-09 14:19:12 +02:00
atbash.py atbash.py: Tighten up the benchmarks (#7977) 2022-11-10 15:41:28 +13:00
autokey.py Add autoclave cipher (#8029) 2022-12-18 23:26:39 +01:00
baconian_cipher.py Remove wrongly placed double qoutes (#5530) 2021-10-23 01:14:08 +08:00
base16.py Write a proper implementation for base16 (#6909) 2022-10-26 19:09:28 +13:00
base32.py Rewrite of base32.py algorithm (#9068) 2023-09-24 02:09:32 -04:00
base64.py Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
base85.py Rewrite of base85.py algorithm (#9069) 2023-09-24 03:36:06 -04:00
beaufort_cipher.py Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
bifid.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
brute_force_caesar_cipher.py refactor: Move constants outside of variable scope (#7262) 2022-10-16 15:03:29 +05:30
caesar_cipher.py fix typo in caesar_cipher.py (#7761) 2022-10-27 23:03:34 +02:00
cryptomath_module.py Removed redundant greatest_common_divisor code (#9358) 2023-10-09 14:19:12 +02:00
decrypt_caesar_with_chi_squared.py Make decrypt_caesar_with_chi_squared work with upper case letters (#5379) 2021-10-31 11:46:31 +01:00
deterministic_miller_rabin.py The black formatter is no longer beta (#5960) 2022-01-30 20:29:54 +01:00
diffie_hellman.py Fix ruff rules ISC flake8-implicit-str-concat (#8892) 2023-07-28 17:53:09 +01:00
diffie.py Add DocTests to diffie.py (#10156) 2023-10-09 17:19:05 +02:00
elgamal_key_generator.py Follow Flake8 pep3101 and remove modulo formatting (#7339) 2022-10-16 22:50:11 +02:00
enigma_machine2.py Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
fractionated_morse_cipher.py Added fractionated_morse_cipher (#9442) 2023-10-08 13:05:01 +02:00
hill_cipher.py Removed redundant greatest_common_divisor code (#9358) 2023-10-09 14:19:12 +02:00
mixed_keyword_cypher.py Improve readability of ciphers/mixed_keyword_cypher.py (#8626) 2023-06-09 11:06:37 +02:00
mono_alphabetic_ciphers.py fix(mypy): type annotations for cipher algorithms (#4306) 2021-04-04 07:22:12 +02:00
morse_code.py Add tests to morse_code.py (#5337) 2021-10-16 18:57:38 +02:00
onepad_cipher.py Add tests without modifying code (#10740) 2023-10-22 07:42:26 +02:00
permutation_cipher.py Added ciphers/permutation_cipher.py. (#9163) 2023-10-09 15:38:04 -04:00
playfair_cipher.py added doctest to playfair_cipher.py (#10823) 2023-10-22 17:39:31 -04:00
polybius.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
porta_cipher.py fix(mypy): type annotations for cipher algorithms (#4306) 2021-04-04 07:22:12 +02:00
prehistoric_men.txt Fixed file name in transposition_cipher_encrypt_decrypt_file.py. Fixing bug file not found. (#9426) 2023-10-03 23:34:55 -04:00
rabin_miller.py Add flake8 pluin flake8 bugbear to pre-commit (#7132) 2022-10-13 18:03:06 +02:00
rail_fence_cipher.py Add Flake8 comprehensions to pre-commit (#7235) 2022-10-15 19:29:42 +02:00
README.md Add README files 2/8 (#5766) 2021-11-11 21:39:54 +08:00
rot13.py fix(mypy): type annotations for cipher algorithms (#4306) 2021-04-04 07:22:12 +02:00
rsa_cipher.py Update linear_discriminant_analysis.py and rsa_cipher.py (#8680) 2023-04-24 07:28:30 +02:00
rsa_factorization.py Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions (#7062) 2022-10-13 00:54:20 +02:00
rsa_key_generator.py Removed redundant greatest_common_divisor code (#9358) 2023-10-09 14:19:12 +02:00
running_key_cipher.py Add running key cipher (#10834) 2023-10-29 15:55:37 +01:00
shuffled_shift_cipher.py Raise error not string (#7945) 2022-11-06 15:54:44 +01:00
simple_keyword_cypher.py Fix grammatical mistakes in simple_keyword_cypher.py (#6385) 2022-10-30 08:03:28 +01:00
simple_substitution_cipher.py Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions (#7062) 2022-10-13 00:54:20 +02:00
transposition_cipher_encrypt_decrypt_file.py Fixed file name in transposition_cipher_encrypt_decrypt_file.py. Fixing bug file not found. (#9426) 2023-10-03 23:34:55 -04:00
transposition_cipher.py Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions (#7062) 2022-10-13 00:54:20 +02:00
trifid_cipher.py Add docstrings and doctests and fix a bug ciphers/trifid_cipher.py (#10716) 2023-10-20 23:28:21 +02:00
vernam_cipher.py Create vernam_cipher.py (#10702) 2023-10-19 22:05:16 +02:00
vigenere_cipher.py Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions (#7062) 2022-10-13 00:54:20 +02:00
xor_cipher.py XOR Cipher: doctests and bug fixes (#10840) 2023-10-29 13:57:04 +01:00

Ciphers

Ciphers are used to protect data from people that are not allowed to have it. They are everywhere on the internet to protect your connections.