You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Cipher Buster: Brute Force Decryption for Caesar and Transposition Ciphers
2
+
3
+
Cipher Buster is a Python script that performs a brute force attack on Caesar Cipher and Transposition Cipher encryption. It allows you to analyze the security of these encryption methods by attempting to crack them through an exhaustive search of all possible keys.
4
+
5
+
## Features
6
+
7
+
- Decrypt ciphertext encrypted using the Caesar Cipher.
8
+
- Decrypt ciphertext encrypted using the Transposition Cipher.
9
+
- Perform automatic brute force decryption by trying all possible shift values for Caesar Cipher or key values for Transposition Cipher.
10
+
- User-friendly command-line interface for input and interaction.
11
+
12
+
## Usage
13
+
14
+
1. Make sure you have Python 3.x installed on your system.
15
+
2. Clone this repository or download the `cipher_buster.py` file.
16
+
3. Open a terminal or command prompt and navigate to the directory where the script is located.
17
+
4. Run the script using the following command: python cipher_buster.py
18
+
5. Follow the prompts to select the encryption method (Caesar or Transposition) and provide the ciphertext.
19
+
6. If you know the shift value or key, enter it when prompted. Otherwise, leave it blank to try all possible combinations.
20
+
7. The script will display the decrypted plaintext for each potential key or shift value.
21
+
22
+
## Examples
23
+
24
+
### Decrypting Caesar Cipher
25
+
26
+
Which encryption method would you like to decrypt?
27
+
Choose number:
28
+
1) Caesar
29
+
2) Transposition
30
+
> 1
31
+
32
+
Enter the ciphertext to decrypt: VQREQFGT
33
+
34
+
Enter the shift value used in the Caesar cipher:
35
+
[If you don't know the shift/key, just press enter; the script will try all possible combinations then]
36
+
> 2
37
+
38
+
TOPSECRET
39
+
40
+
## Decrypting Transposition Cipher
41
+
42
+
Which encryption method would you like to decrypt?
43
+
Choose number:
44
+
1) Caesar
45
+
2) Transposition
46
+
> 2
47
+
48
+
Enter the ciphertext to decrypt: AEIMNORTUAYOBCEFHLPET
49
+
50
+
Enter the key used in the transposition cipher:
51
+
[If you don't know the shift/key, just press enter; the script will try all possible combinations then]
0 commit comments