The Wayback Machine - https://web.archive.org/web/20201126010949/https://github.com/TheAlgorithms/Python/commit/05f4089bf08776469adbef10d5a5cb0cb672e7c6
Skip to content
Permalink
Browse files

Fixed typo in caesar_cipher.py (#2979)

* Fixed typo in caesar_cipher.py

* Typo fixes
  • Loading branch information
CapofWeird committed Oct 17, 2020
1 parent a88006d commit 05f4089bf08776469adbef10d5a5cb0cb672e7c6
Showing with 3 additions and 3 deletions.
  1. +1 −1 ciphers/caesar_cipher.py
  2. +1 −1 ciphers/xor_cipher.py
  3. +1 −1 hashes/sha1.py
@@ -220,7 +220,7 @@ def brute_force(input_string: str, alphabet=None) -> dict:
def main():
while True:
print(f'\n{"-" * 10}\n Menu\n{"-" * 10}')
print(*["1.Encrpyt", "2.Decrypt", "3.BruteForce", "4.Quit"], sep="\n")
print(*["1.Encrypt", "2.Decrypt", "3.BruteForce", "4.Quit"], sep="\n")

# get user input
choice = input("\nWhat would you like to do?: ").strip() or "4"
@@ -183,7 +183,7 @@ def decrypt_file(self, file: str, key: int) -> bool:
# crypt = XORCipher()
# key = 67

# # test enrcypt
# # test encrypt
# print(crypt.encrypt("hallo welt",key))
# # test decrypt
# print(crypt.decrypt(crypt.encrypt("hallo welt",key), key))
@@ -8,7 +8,7 @@
Also contains a Test class to verify that the generated Hash is same as that
returned by the hashlib library
SHA1 hash or SHA1 sum of a string is a crytpographic function which means it is easy
SHA1 hash or SHA1 sum of a string is a cryptographic function which means it is easy
to calculate forwards but extremely difficult to calculate backwards. What this means
is, you can easily calculate the hash of a string, but it is extremely difficult to
know the original string if you have its hash. This property is useful to communicate

0 comments on commit 05f4089

Please sign in to comment.
You can’t perform that action at this time.