Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,23 +1,24 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Simple Substitution Cipher Decryptor
|
| 3 |
-
emoji: 🕵️
|
| 4 |
-
colorFrom: blue
|
| 5 |
-
colorTo: green
|
| 6 |
-
sdk: gradio
|
| 7 |
-
app_file: main.py
|
| 8 |
-
pinned: false
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Simple Substitution Cipher Decryptor
|
| 3 |
+
emoji: 🕵️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: gradio
|
| 7 |
+
app_file: main.py
|
| 8 |
+
pinned: false
|
| 9 |
+
app_port: 8080
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Simple Substitution Cipher Decryptor
|
| 13 |
+
|
| 14 |
+
This is a simple tool to automatically decrypt text that has been encrypted with a simple substitution cipher.
|
| 15 |
+
|
| 16 |
+
**How it works:**
|
| 17 |
+
The backend uses n-gram frequency analysis (specifically quadgrams) to score possible decryptions and find the most likely plaintext.
|
| 18 |
+
|
| 19 |
+
**How to use:**
|
| 20 |
+
1. Paste your ciphertext into the "Ciphertext" box.
|
| 21 |
+
2. (Optional) If you know any letter mappings (e.g., you know 'a' in the ciphertext is 'T' in the plaintext), you can provide them in the "Known Key Mappings" box. The format is `a=T b=E`.
|
| 22 |
+
3. The decrypted plaintext will appear in the "Plaintext" box.
|
| 23 |
+
|
| 24 |
+
*Note: The decryption process is heuristic and may not always produce a perfect result, especially for short ciphertexts.*
|