Adding cypher buster script #1680
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added Cipher buster script
This PR resolves #1679
Description
Caesar Cipher Decryption: The script decrypts a ciphertext encrypted using the Caesar Cipher. It prompts the user to enter the ciphertext and provides an option to enter the known shift value used in the encryption. If the shift value is unknown, the script automatically tries all possible shift values (1 to 25) and displays the decrypted plaintext for each potential shift value.
Transposition Cipher Decryption: The script decrypts a ciphertext encrypted using the Transposition Cipher. It prompts the user to enter the ciphertext and provides an option to enter the known key used in the encryption. If the key is unknown, the script automatically tries all possible key values (1 to 25) and displays the decrypted plaintext for each potential key value.
User Interface: The script provides a user-friendly command-line interface. It prompts the user to select the encryption method they want to decrypt (1 for Caesar Cipher, 2 for Transposition Cipher) and input the corresponding ciphertext. The user can also choose to provide the known shift value or key, or leave it blank to try all possible combinations.
I request you to mark this contribution under GSSOC'23
Checklist:
README.md
Category:
Title: Cypher Buster
Folder: cypher_buster
Script: cipher_buster.py