Skip to content

Fixed typo in caesar_cipher.py #2979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ciphers/caesar_cipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ciphers/xor_cipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def decrypt_file(self, file, key):
# 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))
Expand Down
2 changes: 1 addition & 1 deletion hashes/sha1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down