systemslibrarian commited on
Commit
19f3784
·
verified ·
1 Parent(s): f61584d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +83 -0
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: transformers
4
+ tags:
5
+ - text-classification
6
+ - cryptography
7
+ - cryptanalysis
8
+ - classical-ciphers
9
+ - cybersecurity-education
10
+ datasets:
11
+ - systemslibrarian/classical-cipher-corpus
12
+ metrics:
13
+ - accuracy
14
+ - f1
15
+ ---
16
+
17
+ # Cipher Detective Classifier
18
+
19
+ A Transformer-based educational classifier for identifying broad classical-cipher families from ciphertext-like text.
20
+
21
+ **Part of the Cipher Detective AI project:**
22
+ - 🕵️ Space: [systemslibrarian/cipher-detective-ai](https://huggingface.co/spaces/systemslibrarian/cipher-detective-ai)
23
+ - 📦 Dataset: [systemslibrarian/classical-cipher-corpus](https://huggingface.co/datasets/systemslibrarian/classical-cipher-corpus)
24
+ - 🤖 Model: [systemslibrarian/cipher-detective-classifier](https://huggingface.co/systemslibrarian/cipher-detective-classifier) _(this repo)_
25
+
26
+ ## Intended use
27
+
28
+ This model supports the **Cipher Detective AI** Hugging Face Space. It is intended for:
29
+
30
+ - cryptography education
31
+ - classical cipher demonstrations
32
+ - comparison against transparent heuristic baselines
33
+ - teaching why weak ciphers leak patterns
34
+
35
+ ## Labels
36
+
37
+ - `plaintext`
38
+ - `caesar_rot`
39
+ - `atbash`
40
+ - `vigenere`
41
+ - `rail_fence`
42
+ - `columnar`
43
+ - `affine`
44
+ - `substitution`
45
+
46
+ ## Not intended for
47
+
48
+ - breaking modern encryption
49
+ - unauthorized access
50
+ - surveillance
51
+ - password recovery
52
+ - bypassing security controls
53
+ - claims about real-world cryptanalytic capability
54
+
55
+ ## Training
56
+
57
+ ```bash
58
+ python scripts/generate_dataset.py --out data/cipher_examples.jsonl --n 50000 --seed 42
59
+ python scripts/train_transformer.py \
60
+ --data data/cipher_examples.jsonl \
61
+ --model distilbert-base-uncased \
62
+ --out cipher_model \
63
+ --epochs 3
64
+ ```
65
+
66
+ ## Evaluation
67
+
68
+ After training, include:
69
+
70
+ - accuracy
71
+ - macro F1
72
+ - per-label precision/recall/F1
73
+ - confusion matrix
74
+ - examples of false positives
75
+ - examples of false negatives
76
+
77
+ ## Limitations
78
+
79
+ The model learns patterns from synthetic educational examples. It can confuse cipher families with similar surface statistics, especially transposition, substitution, and short Vigenère samples. It should be presented as a teaching classifier, not as a cryptanalytic authority.
80
+
81
+ ## Responsible-use statement
82
+
83
+ Use this model to teach how classical ciphers leak patterns and why modern cryptography requires careful protocol design, key management, implementation correctness, and threat modeling.