mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-30 16:31:08 +00:00
9c9da8ebf1
* refactored the code * the code will now pass the test * looked more into it and fixed the logic * made the code easier to read, added comments and fixed the logic * got rid of redundant code + plaintext can contain chars that are not in the alphabet * fixed the reduntant conversion of ascii_uppercase to a list * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * keyword and plaintext won't have default values * ran the ruff command * Update linear_discriminant_analysis.py and rsa_cipher.py (#8680) * Update rsa_cipher.py by replacing %s with {} * Update rsa_cipher.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update linear_discriminant_analysis.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update linear_discriminant_analysis.py * Update linear_discriminant_analysis.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update linear_discriminant_analysis.py * Update linear_discriminant_analysis.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update linear_discriminant_analysis.py * Update machine_learning/linear_discriminant_analysis.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update linear_discriminant_analysis.py * updated --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com> * fixed some difficulties * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added comments, made printing mapping optional, added 1 test * shortened the line that was too long * Update ciphers/mixed_keyword_cypher.py Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Rohan Anand <96521078+rohan472000@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com> |
||
---|---|---|
.. | ||
__init__.py | ||
a1z26.py | ||
affine_cipher.py | ||
atbash.py | ||
autokey.py | ||
baconian_cipher.py | ||
base16.py | ||
base32.py | ||
base64.py | ||
base85.py | ||
beaufort_cipher.py | ||
bifid.py | ||
brute_force_caesar_cipher.py | ||
caesar_cipher.py | ||
cryptomath_module.py | ||
decrypt_caesar_with_chi_squared.py | ||
deterministic_miller_rabin.py | ||
diffie_hellman.py | ||
diffie.py | ||
elgamal_key_generator.py | ||
enigma_machine2.py | ||
hill_cipher.py | ||
mixed_keyword_cypher.py | ||
mono_alphabetic_ciphers.py | ||
morse_code.py | ||
onepad_cipher.py | ||
playfair_cipher.py | ||
polybius.py | ||
porta_cipher.py | ||
prehistoric_men.txt | ||
rabin_miller.py | ||
rail_fence_cipher.py | ||
README.md | ||
rot13.py | ||
rsa_cipher.py | ||
rsa_factorization.py | ||
rsa_key_generator.py | ||
shuffled_shift_cipher.py | ||
simple_keyword_cypher.py | ||
simple_substitution_cipher.py | ||
trafid_cipher.py | ||
transposition_cipher_encrypt_decrypt_file.py | ||
transposition_cipher.py | ||
vigenere_cipher.py | ||
xor_cipher.py |
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.