Skip to content

Commit 05f4089

Browse files
authored
Fixed typo in caesar_cipher.py (#2979)
* Fixed typo in caesar_cipher.py * Typo fixes
1 parent a88006d commit 05f4089

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: ciphers/caesar_cipher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def brute_force(input_string: str, alphabet=None) -> dict:
220220
def main():
221221
while True:
222222
print(f'\n{"-" * 10}\n Menu\n{"-" * 10}')
223-
print(*["1.Encrpyt", "2.Decrypt", "3.BruteForce", "4.Quit"], sep="\n")
223+
print(*["1.Encrypt", "2.Decrypt", "3.BruteForce", "4.Quit"], sep="\n")
224224

225225
# get user input
226226
choice = input("\nWhat would you like to do?: ").strip() or "4"

Diff for: ciphers/xor_cipher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def decrypt_file(self, file: str, key: int) -> bool:
183183
# crypt = XORCipher()
184184
# key = 67
185185

186-
# # test enrcypt
186+
# # test encrypt
187187
# print(crypt.encrypt("hallo welt",key))
188188
# # test decrypt
189189
# print(crypt.decrypt(crypt.encrypt("hallo welt",key), key))

Diff for: hashes/sha1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Also contains a Test class to verify that the generated Hash is same as that
99
returned by the hashlib library
1010
11-
SHA1 hash or SHA1 sum of a string is a crytpographic function which means it is easy
11+
SHA1 hash or SHA1 sum of a string is a cryptographic function which means it is easy
1212
to calculate forwards but extremely difficult to calculate backwards. What this means
1313
is, you can easily calculate the hash of a string, but it is extremely difficult to
1414
know the original string if you have its hash. This property is useful to communicate

0 commit comments

Comments
 (0)