systemslibrarian commited on
Commit
b1e990f
·
verified ·
1 Parent(s): e3c6e68

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +93 -0
README.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Classical Cipher Corpus
3
+ license: mit
4
+ task_categories:
5
+ - text-classification
6
+ language:
7
+ - en
8
+ tags:
9
+ - cryptography
10
+ - classical-ciphers
11
+ - cryptanalysis
12
+ - cybersecurity-education
13
+ - synthetic-data
14
+ size_categories:
15
+ - 10K<n<100K
16
+ ---
17
+
18
+ # Classical Cipher Corpus
19
+
20
+ A labeled educational dataset of classical cipher examples for teaching cryptanalysis and training small cipher-family classifiers.
21
+
22
+ ## Intended use
23
+
24
+ - Teach classical cryptanalysis.
25
+ - Benchmark educational cipher-family detectors.
26
+ - Train small text classifiers for Hugging Face Spaces.
27
+ - Demonstrate why historical ciphers are not modern security.
28
+
29
+ ## Not intended for
30
+
31
+ - Unauthorized access.
32
+ - Surveillance.
33
+ - Breaking modern encryption.
34
+ - Password recovery.
35
+ - Bypassing security controls.
36
+ - Real-world cryptographic security claims.
37
+
38
+ ## Schema
39
+
40
+ Each line of `cipher_examples.jsonl` is one record:
41
+
42
+ ```json
43
+ {
44
+ "id": "cda-0000042",
45
+ "text": "WKLV LV D FODVVLFDO FDHVDU FLSKHU GHPR",
46
+ "ciphertext": "WKLV LV D FODVVLFDO FDHVDU FLSKHU GHPR",
47
+ "plaintext": "THIS IS A CLASSICAL CAESAR CIPHER DEMO",
48
+ "label": "caesar_rot",
49
+ "cipher": "caesar_rot",
50
+ "key": {"shift": 3},
51
+ "difficulty": "medium",
52
+ "language": "en",
53
+ "text_length": 38,
54
+ "length": 38,
55
+ "attack_methods": ["brute_force_26", "frequency_analysis", "chi_squared_english"],
56
+ "educational_note": "Caesar / ROT-N is a single-shift monoalphabetic cipher with only 26 keys.",
57
+ "source": "synthetic_educational"
58
+ }
59
+ ```
60
+
61
+ `text` and `ciphertext` are kept as aliases for compatibility. `text_length` and `length` likewise.
62
+
63
+ ## Labels
64
+
65
+ - `plaintext`
66
+ - `caesar_rot`
67
+ - `atbash`
68
+ - `vigenere`
69
+ - `rail_fence`
70
+ - `columnar`
71
+ - `affine`
72
+ - `substitution`
73
+
74
+ ## Construction
75
+
76
+ The dataset is generated synthetically from educational English plaintext templates and classical cipher transforms. It is reproducible with:
77
+
78
+ ```bash
79
+ python scripts/generate_dataset.py --out data/cipher_examples.jsonl --n 50000 --seed 42
80
+ ```
81
+
82
+ ## Biases and limitations
83
+
84
+ - Mostly English.
85
+ - Synthetic text.
86
+ - Limited cipher families.
87
+ - Not representative of modern encryption.
88
+ - Not a benchmark for real-world cryptanalytic capability.
89
+ - Model performance on this dataset should be framed only as educational classification performance.
90
+
91
+ ## Responsible framing
92
+
93
+ This dataset exists to teach pattern leakage in classical ciphers. It should be used to make learners more skeptical of weak encryption claims and more respectful of modern, well-reviewed cryptography.