dicemint 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dicemint-1.0.0/LICENSE +21 -0
- dicemint-1.0.0/MANIFEST.in +23 -0
- dicemint-1.0.0/PKG-INFO +241 -0
- dicemint-1.0.0/README.md +206 -0
- dicemint-1.0.0/THIRD_PARTY_NOTICES.md +20 -0
- dicemint-1.0.0/dicemint.egg-info/PKG-INFO +241 -0
- dicemint-1.0.0/dicemint.egg-info/SOURCES.txt +31 -0
- dicemint-1.0.0/dicemint.egg-info/dependency_links.txt +1 -0
- dicemint-1.0.0/dicemint.egg-info/entry_points.txt +2 -0
- dicemint-1.0.0/dicemint.egg-info/requires.txt +6 -0
- dicemint-1.0.0/dicemint.egg-info/top_level.txt +3 -0
- dicemint-1.0.0/dicemint_core.py +446 -0
- dicemint-1.0.0/dicemint_gui.py +662 -0
- dicemint-1.0.0/dicemint_words.py +17 -0
- dicemint-1.0.0/dictionary/README.md +22 -0
- dicemint-1.0.0/dictionary/eff_large_wordlist.txt +7776 -0
- dicemint-1.0.0/dictionary/eff_short_wordlist_1.txt +1296 -0
- dicemint-1.0.0/dictionary/eff_short_wordlist_2_0.txt +1296 -0
- dicemint-1.0.0/icon.ico +0 -0
- dicemint-1.0.0/icon128.png +0 -0
- dicemint-1.0.0/icon256.png +0 -0
- dicemint-1.0.0/icon64.png +0 -0
- dicemint-1.0.0/packaging/aur/PKGBUILD +44 -0
- dicemint-1.0.0/packaging/build-deb.sh +36 -0
- dicemint-1.0.0/packaging/control +11 -0
- dicemint-1.0.0/packaging/copyright +35 -0
- dicemint-1.0.0/packaging/io.github.zxmuffin.dicemint.desktop +12 -0
- dicemint-1.0.0/packaging/io.github.zxmuffin.dicemint.metainfo.xml +43 -0
- dicemint-1.0.0/packaging/postinst +14 -0
- dicemint-1.0.0/packaging/postrm +13 -0
- dicemint-1.0.0/pyproject.toml +57 -0
- dicemint-1.0.0/requirements.txt +4 -0
- dicemint-1.0.0/setup.cfg +4 -0
dicemint-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dicemint contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
include LICENSE
|
|
2
|
+
include THIRD_PARTY_NOTICES.md
|
|
3
|
+
include README.md
|
|
4
|
+
include requirements.txt
|
|
5
|
+
include icon.ico
|
|
6
|
+
include icon64.png
|
|
7
|
+
include icon128.png
|
|
8
|
+
include icon256.png
|
|
9
|
+
|
|
10
|
+
recursive-include dictionary *.txt
|
|
11
|
+
include dictionary/README.md
|
|
12
|
+
recursive-include packaging *
|
|
13
|
+
|
|
14
|
+
# setuptools adds every VCS-tracked file on top of this list; prune wins.
|
|
15
|
+
prune docs
|
|
16
|
+
prune tests
|
|
17
|
+
exclude pytest.ini
|
|
18
|
+
exclude README.ru.md
|
|
19
|
+
|
|
20
|
+
global-exclude *.py[cod]
|
|
21
|
+
global-exclude __pycache__
|
|
22
|
+
prune build
|
|
23
|
+
prune dist
|
dicemint-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dicemint
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Offline Diceware passphrase generator with a Tkinter GUI
|
|
5
|
+
Author-email: Alex <muffinprod@proton.me>
|
|
6
|
+
Maintainer-email: Alex <muffinprod@proton.me>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Homepage, https://github.com/zxmuffin/dicemint
|
|
9
|
+
Project-URL: Repository, https://github.com/zxmuffin/dicemint
|
|
10
|
+
Project-URL: Issues, https://github.com/zxmuffin/dicemint/issues
|
|
11
|
+
Keywords: diceware,passphrase,password,security,offline,tkinter
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Environment :: Win32 (MS Windows)
|
|
14
|
+
Classifier: Environment :: X11 Applications
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: Natural Language :: English
|
|
17
|
+
Classifier: Natural Language :: Russian
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Topic :: Security :: Cryptography
|
|
25
|
+
Classifier: Topic :: Utilities
|
|
26
|
+
Requires-Python: >=3.10
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
31
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
32
|
+
Requires-Dist: twine>=5.0; extra == "dev"
|
|
33
|
+
Requires-Dist: pyinstaller>=6.0; extra == "dev"
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
|
|
36
|
+
<!-- doc-class: living -->
|
|
37
|
+
# Dicemint
|
|
38
|
+
|
|
39
|
+
[](https://pypi.org/project/dicemint/)
|
|
40
|
+
[](https://pypi.org/project/dicemint/)
|
|
41
|
+
[](https://github.com/zxmuffin/dicemint/blob/master/LICENSE)
|
|
42
|
+
|
|
43
|
+
Dicemint is a small desktop app for Windows and Linux that builds memorable
|
|
44
|
+
passphrases from ordinary words using the Diceware method. Everything runs
|
|
45
|
+
locally: the app never opens a socket, never checks for updates, never sends
|
|
46
|
+
telemetry and never writes a generated passphrase to disk.
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
## Highlights
|
|
51
|
+
|
|
52
|
+
- **Three EFF wordlists, embedded in the package** — 7776 strong words, or
|
|
53
|
+
1296 short ones when typing or dictating matters more.
|
|
54
|
+
- **6 to 12 words per phrase** (8 by default) with a configurable separator,
|
|
55
|
+
which may also be empty.
|
|
56
|
+
- **Length limit mode** for sites that cap password length.
|
|
57
|
+
- **Password requirements mode** for sites that demand a capital letter, a
|
|
58
|
+
digit or a special symbol. Formal compliance only: real strength still
|
|
59
|
+
comes from the word count.
|
|
60
|
+
- **Live entropy estimate** with a strength bar from 40 to 160 bits. The
|
|
61
|
+
counter reflects the data chunk the phrase was actually generated from, and
|
|
62
|
+
bits added by the password policy are counted separately.
|
|
63
|
+
- **Keyboard-friendly**: `Enter` rolls a new phrase, `Ctrl+C` copies it
|
|
64
|
+
outside text fields.
|
|
65
|
+
- **Offline and auditable**: entropy comes from the Python `secrets` module
|
|
66
|
+
(OS CSPRNG); the app is a single 3-module codebase with no runtime
|
|
67
|
+
dependencies outside the standard library.
|
|
68
|
+
|
|
69
|
+
## Install
|
|
70
|
+
|
|
71
|
+
| Platform | How |
|
|
72
|
+
|---|---|
|
|
73
|
+
| Windows | `Dicemint.exe` from the [latest release](https://github.com/zxmuffin/dicemint/releases/latest) — no Python required |
|
|
74
|
+
| Linux (recommended) | `pipx install dicemint` — adds a `dicemint` command to `PATH` |
|
|
75
|
+
| Debian / Ubuntu (.deb) | `dicemint_<version>_all.deb` from the [latest release](https://github.com/zxmuffin/dicemint/releases/latest) |
|
|
76
|
+
| Any OS, from PyPI | `pip install dicemint` |
|
|
77
|
+
|
|
78
|
+
The release page also carries the wheel, the sdist and `SHA256SUMS`, so every
|
|
79
|
+
install path above starts from the same verified build.
|
|
80
|
+
|
|
81
|
+
### Windows
|
|
82
|
+
|
|
83
|
+
1. Download `Dicemint.exe`.
|
|
84
|
+
2. Run it. If SmartScreen appears, choose **More info → Run anyway** (the
|
|
85
|
+
binary is not code-signed).
|
|
86
|
+
|
|
87
|
+
### Debian / Ubuntu
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
sudo apt install python3-tk
|
|
91
|
+
sudo dpkg -i dicemint_<version>_all.deb
|
|
92
|
+
dicemint
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Fedora
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
sudo dnf install python3-tkinter
|
|
99
|
+
pipx install dicemint
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### PyPI / pipx
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
pipx install dicemint
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
or, inside a virtual environment:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
pip install dicemint
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Python 3.10 or newer is required. Tk ships with the official Windows
|
|
115
|
+
installers from python.org but is a separate package on Linux; if it is
|
|
116
|
+
missing, the app stops with an explicit message instead of a traceback.
|
|
117
|
+
|
|
118
|
+
## First run
|
|
119
|
+
|
|
120
|
+
You get a single window with three areas:
|
|
121
|
+
|
|
122
|
+
- **Phrase builder** — wordlist, word count and separator.
|
|
123
|
+
- **Password requirements** — optional checkboxes for sites that demand a
|
|
124
|
+
capital letter, a digit or a special symbol.
|
|
125
|
+
- The result field — the finished phrase, its strength counter and a bar
|
|
126
|
+
from 40 to 160 bits.
|
|
127
|
+
|
|
128
|
+
## Usage
|
|
129
|
+
|
|
130
|
+
1. Pick a wordlist. More words in the list means more strength per word:
|
|
131
|
+
- **EFF Long Wordlist** — 7776 words, 5 dice per word, the strongest
|
|
132
|
+
choice, recommended for critical accounts.
|
|
133
|
+
- **EFF Short Wordlist #1** — 1296 short words, easy to type on a phone.
|
|
134
|
+
- **EFF Short Wordlist #2** — 1296 words with unique prefixes, easy to
|
|
135
|
+
dictate.
|
|
136
|
+
2. Set the word count from 6 to 12 (8 by default). Every extra word raises
|
|
137
|
+
strength noticeably.
|
|
138
|
+
3. Change the separator if you like (a space by default; it may be empty).
|
|
139
|
+
4. Press **Roll the dice** or `Enter` for a new passphrase. The phrase also
|
|
140
|
+
rebuilds itself whenever a parameter changes, except the wordlist:
|
|
141
|
+
switching the wordlist clears the result.
|
|
142
|
+
5. Press **Copy** — the phrase goes to the clipboard and the button shows
|
|
143
|
+
"Copied" for about a second. `Ctrl+C` works outside text fields.
|
|
144
|
+
|
|
145
|
+
The result header shows how many characters the phrase has and how strong it
|
|
146
|
+
is: `N chars · ≈M bits`. The bar under those numbers shows the margin on a
|
|
147
|
+
40–160 bit scale.
|
|
148
|
+
|
|
149
|
+
The main counter is derived from the size of the wordlist in use. Bits
|
|
150
|
+
coming from the password policy are counted separately and shown as a
|
|
151
|
+
distinct tail on the strength bar. With **Length limit** on, only the part of
|
|
152
|
+
the wordlist that fits the limit is used, and the counter accounts for that
|
|
153
|
+
reduced pool — in short, it reflects only the real entropy of the data chunk
|
|
154
|
+
the phrase was actually generated from.
|
|
155
|
+
|
|
156
|
+
## When a site limits password length
|
|
157
|
+
|
|
158
|
+
Turn on **Length limit** and pick a cap from 40 to 100 characters. The app
|
|
159
|
+
fits as many whole words as possible into the limit and never truncates a
|
|
160
|
+
phrase. The resulting strength stays visible — follow that number.
|
|
161
|
+
|
|
162
|
+
## Password requirements: the important part
|
|
163
|
+
|
|
164
|
+
The **Password requirements** section exists to pass formal checks on sites
|
|
165
|
+
that demand "at least one capital letter", "at least one digit" or "at
|
|
166
|
+
least one special symbol".
|
|
167
|
+
|
|
168
|
+
- **Do not use this section to gain strength.** Trust the plain wordlist
|
|
169
|
+
number: how many words there are and how much entropy they carry. That
|
|
170
|
+
is the real strength.
|
|
171
|
+
- The policy bonus (`≈K bits from policy`) is mostly visualisation, not a
|
|
172
|
+
recommendation. It shows a small gain from character substitutions in an
|
|
173
|
+
already chosen phrase.
|
|
174
|
+
- Need more strength — add another word, not another checkbox.
|
|
175
|
+
- If the site has no special-symbol rule, leave the set empty: then no
|
|
176
|
+
symbol is added at all.
|
|
177
|
+
|
|
178
|
+
## Privacy and security
|
|
179
|
+
|
|
180
|
+
- No network access, no auto-update, no telemetry.
|
|
181
|
+
- Entropy source is the Python `secrets` module, which reads the operating
|
|
182
|
+
system CSPRNG; `random` is never used for word selection.
|
|
183
|
+
- Wordlists are embedded into the package (gzip + base64 blobs), so a run
|
|
184
|
+
does not depend on files that could change between installs.
|
|
185
|
+
- The only outputs are the on-screen field and the clipboard — nothing is
|
|
186
|
+
written to disk.
|
|
187
|
+
|
|
188
|
+
Please report vulnerabilities through **Security → Report a vulnerability**,
|
|
189
|
+
not in a public issue. See
|
|
190
|
+
[`SECURITY.md`](https://github.com/zxmuffin/dicemint/blob/master/SECURITY.md)
|
|
191
|
+
for the full threat model.
|
|
192
|
+
|
|
193
|
+
## Troubleshooting
|
|
194
|
+
|
|
195
|
+
- **The app does not start or Windows blocks it.** In the SmartScreen window
|
|
196
|
+
press "More info" → "Run anyway".
|
|
197
|
+
- **`Ctrl+C` does not copy the phrase.** Focus is probably inside a text
|
|
198
|
+
field — use the **Copy** button.
|
|
199
|
+
- **`ModuleNotFoundError: No module named 'tkinter'`.** Tk is missing for
|
|
200
|
+
this Python: `sudo apt install python3-tk` (Debian/Ubuntu) or
|
|
201
|
+
`sudo dnf install python3-tkinter` (Fedora).
|
|
202
|
+
|
|
203
|
+
## Known limitations
|
|
204
|
+
|
|
205
|
+
- The `.deb` depends on the distribution's `python3` and `python3-tk`; it
|
|
206
|
+
does not bundle a Python runtime.
|
|
207
|
+
- Clipboard managers or other software on the machine may capture copied
|
|
208
|
+
passphrases; that is outside the app's control.
|
|
209
|
+
- The Windows build is not code-signed, so the first launch always goes
|
|
210
|
+
through a SmartScreen warning (see Troubleshooting).
|
|
211
|
+
|
|
212
|
+
## Building from source
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
git clone https://github.com/zxmuffin/dicemint.git
|
|
216
|
+
cd dicemint
|
|
217
|
+
python -m pip install . # installs the `dicemint` command
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Development dependencies (PyInstaller, pytest):
|
|
221
|
+
`python -m pip install -r requirements.txt`
|
|
222
|
+
|
|
223
|
+
| Task | Command | Output |
|
|
224
|
+
|---|---|---|
|
|
225
|
+
| Regenerate the embedded wordlists | `python build_embed.py` | `dicemint_words.py` (generated, never edit by hand) |
|
|
226
|
+
| Build the Windows executable | `python build_exe.py` | `Dicemint.exe` in the repository root |
|
|
227
|
+
| Build the Debian package | `bash packaging/build-deb.sh` (needs `dpkg-deb`) | `dicemint_<version>_all.deb` |
|
|
228
|
+
|
|
229
|
+
## License
|
|
230
|
+
|
|
231
|
+
Code is MIT
|
|
232
|
+
([`LICENSE`](https://github.com/zxmuffin/dicemint/blob/master/LICENSE)). The
|
|
233
|
+
bundled wordlists are published by the Electronic Frontier Foundation under
|
|
234
|
+
CC BY 3.0 — see
|
|
235
|
+
[`THIRD_PARTY_NOTICES.md`](https://github.com/zxmuffin/dicemint/blob/master/THIRD_PARTY_NOTICES.md).
|
|
236
|
+
No endorsement by the EFF is implied.
|
|
237
|
+
|
|
238
|
+
## Disclaimer
|
|
239
|
+
|
|
240
|
+
The code was written by an AI assistant. The design decisions, the GUI
|
|
241
|
+
layout and the product scope were defined and reviewed by a human.
|
dicemint-1.0.0/README.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
<!-- doc-class: living -->
|
|
2
|
+
# Dicemint
|
|
3
|
+
|
|
4
|
+
[](https://pypi.org/project/dicemint/)
|
|
5
|
+
[](https://pypi.org/project/dicemint/)
|
|
6
|
+
[](https://github.com/zxmuffin/dicemint/blob/master/LICENSE)
|
|
7
|
+
|
|
8
|
+
Dicemint is a small desktop app for Windows and Linux that builds memorable
|
|
9
|
+
passphrases from ordinary words using the Diceware method. Everything runs
|
|
10
|
+
locally: the app never opens a socket, never checks for updates, never sends
|
|
11
|
+
telemetry and never writes a generated passphrase to disk.
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
## Highlights
|
|
16
|
+
|
|
17
|
+
- **Three EFF wordlists, embedded in the package** — 7776 strong words, or
|
|
18
|
+
1296 short ones when typing or dictating matters more.
|
|
19
|
+
- **6 to 12 words per phrase** (8 by default) with a configurable separator,
|
|
20
|
+
which may also be empty.
|
|
21
|
+
- **Length limit mode** for sites that cap password length.
|
|
22
|
+
- **Password requirements mode** for sites that demand a capital letter, a
|
|
23
|
+
digit or a special symbol. Formal compliance only: real strength still
|
|
24
|
+
comes from the word count.
|
|
25
|
+
- **Live entropy estimate** with a strength bar from 40 to 160 bits. The
|
|
26
|
+
counter reflects the data chunk the phrase was actually generated from, and
|
|
27
|
+
bits added by the password policy are counted separately.
|
|
28
|
+
- **Keyboard-friendly**: `Enter` rolls a new phrase, `Ctrl+C` copies it
|
|
29
|
+
outside text fields.
|
|
30
|
+
- **Offline and auditable**: entropy comes from the Python `secrets` module
|
|
31
|
+
(OS CSPRNG); the app is a single 3-module codebase with no runtime
|
|
32
|
+
dependencies outside the standard library.
|
|
33
|
+
|
|
34
|
+
## Install
|
|
35
|
+
|
|
36
|
+
| Platform | How |
|
|
37
|
+
|---|---|
|
|
38
|
+
| Windows | `Dicemint.exe` from the [latest release](https://github.com/zxmuffin/dicemint/releases/latest) — no Python required |
|
|
39
|
+
| Linux (recommended) | `pipx install dicemint` — adds a `dicemint` command to `PATH` |
|
|
40
|
+
| Debian / Ubuntu (.deb) | `dicemint_<version>_all.deb` from the [latest release](https://github.com/zxmuffin/dicemint/releases/latest) |
|
|
41
|
+
| Any OS, from PyPI | `pip install dicemint` |
|
|
42
|
+
|
|
43
|
+
The release page also carries the wheel, the sdist and `SHA256SUMS`, so every
|
|
44
|
+
install path above starts from the same verified build.
|
|
45
|
+
|
|
46
|
+
### Windows
|
|
47
|
+
|
|
48
|
+
1. Download `Dicemint.exe`.
|
|
49
|
+
2. Run it. If SmartScreen appears, choose **More info → Run anyway** (the
|
|
50
|
+
binary is not code-signed).
|
|
51
|
+
|
|
52
|
+
### Debian / Ubuntu
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
sudo apt install python3-tk
|
|
56
|
+
sudo dpkg -i dicemint_<version>_all.deb
|
|
57
|
+
dicemint
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Fedora
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
sudo dnf install python3-tkinter
|
|
64
|
+
pipx install dicemint
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### PyPI / pipx
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
pipx install dicemint
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
or, inside a virtual environment:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
pip install dicemint
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Python 3.10 or newer is required. Tk ships with the official Windows
|
|
80
|
+
installers from python.org but is a separate package on Linux; if it is
|
|
81
|
+
missing, the app stops with an explicit message instead of a traceback.
|
|
82
|
+
|
|
83
|
+
## First run
|
|
84
|
+
|
|
85
|
+
You get a single window with three areas:
|
|
86
|
+
|
|
87
|
+
- **Phrase builder** — wordlist, word count and separator.
|
|
88
|
+
- **Password requirements** — optional checkboxes for sites that demand a
|
|
89
|
+
capital letter, a digit or a special symbol.
|
|
90
|
+
- The result field — the finished phrase, its strength counter and a bar
|
|
91
|
+
from 40 to 160 bits.
|
|
92
|
+
|
|
93
|
+
## Usage
|
|
94
|
+
|
|
95
|
+
1. Pick a wordlist. More words in the list means more strength per word:
|
|
96
|
+
- **EFF Long Wordlist** — 7776 words, 5 dice per word, the strongest
|
|
97
|
+
choice, recommended for critical accounts.
|
|
98
|
+
- **EFF Short Wordlist #1** — 1296 short words, easy to type on a phone.
|
|
99
|
+
- **EFF Short Wordlist #2** — 1296 words with unique prefixes, easy to
|
|
100
|
+
dictate.
|
|
101
|
+
2. Set the word count from 6 to 12 (8 by default). Every extra word raises
|
|
102
|
+
strength noticeably.
|
|
103
|
+
3. Change the separator if you like (a space by default; it may be empty).
|
|
104
|
+
4. Press **Roll the dice** or `Enter` for a new passphrase. The phrase also
|
|
105
|
+
rebuilds itself whenever a parameter changes, except the wordlist:
|
|
106
|
+
switching the wordlist clears the result.
|
|
107
|
+
5. Press **Copy** — the phrase goes to the clipboard and the button shows
|
|
108
|
+
"Copied" for about a second. `Ctrl+C` works outside text fields.
|
|
109
|
+
|
|
110
|
+
The result header shows how many characters the phrase has and how strong it
|
|
111
|
+
is: `N chars · ≈M bits`. The bar under those numbers shows the margin on a
|
|
112
|
+
40–160 bit scale.
|
|
113
|
+
|
|
114
|
+
The main counter is derived from the size of the wordlist in use. Bits
|
|
115
|
+
coming from the password policy are counted separately and shown as a
|
|
116
|
+
distinct tail on the strength bar. With **Length limit** on, only the part of
|
|
117
|
+
the wordlist that fits the limit is used, and the counter accounts for that
|
|
118
|
+
reduced pool — in short, it reflects only the real entropy of the data chunk
|
|
119
|
+
the phrase was actually generated from.
|
|
120
|
+
|
|
121
|
+
## When a site limits password length
|
|
122
|
+
|
|
123
|
+
Turn on **Length limit** and pick a cap from 40 to 100 characters. The app
|
|
124
|
+
fits as many whole words as possible into the limit and never truncates a
|
|
125
|
+
phrase. The resulting strength stays visible — follow that number.
|
|
126
|
+
|
|
127
|
+
## Password requirements: the important part
|
|
128
|
+
|
|
129
|
+
The **Password requirements** section exists to pass formal checks on sites
|
|
130
|
+
that demand "at least one capital letter", "at least one digit" or "at
|
|
131
|
+
least one special symbol".
|
|
132
|
+
|
|
133
|
+
- **Do not use this section to gain strength.** Trust the plain wordlist
|
|
134
|
+
number: how many words there are and how much entropy they carry. That
|
|
135
|
+
is the real strength.
|
|
136
|
+
- The policy bonus (`≈K bits from policy`) is mostly visualisation, not a
|
|
137
|
+
recommendation. It shows a small gain from character substitutions in an
|
|
138
|
+
already chosen phrase.
|
|
139
|
+
- Need more strength — add another word, not another checkbox.
|
|
140
|
+
- If the site has no special-symbol rule, leave the set empty: then no
|
|
141
|
+
symbol is added at all.
|
|
142
|
+
|
|
143
|
+
## Privacy and security
|
|
144
|
+
|
|
145
|
+
- No network access, no auto-update, no telemetry.
|
|
146
|
+
- Entropy source is the Python `secrets` module, which reads the operating
|
|
147
|
+
system CSPRNG; `random` is never used for word selection.
|
|
148
|
+
- Wordlists are embedded into the package (gzip + base64 blobs), so a run
|
|
149
|
+
does not depend on files that could change between installs.
|
|
150
|
+
- The only outputs are the on-screen field and the clipboard — nothing is
|
|
151
|
+
written to disk.
|
|
152
|
+
|
|
153
|
+
Please report vulnerabilities through **Security → Report a vulnerability**,
|
|
154
|
+
not in a public issue. See
|
|
155
|
+
[`SECURITY.md`](https://github.com/zxmuffin/dicemint/blob/master/SECURITY.md)
|
|
156
|
+
for the full threat model.
|
|
157
|
+
|
|
158
|
+
## Troubleshooting
|
|
159
|
+
|
|
160
|
+
- **The app does not start or Windows blocks it.** In the SmartScreen window
|
|
161
|
+
press "More info" → "Run anyway".
|
|
162
|
+
- **`Ctrl+C` does not copy the phrase.** Focus is probably inside a text
|
|
163
|
+
field — use the **Copy** button.
|
|
164
|
+
- **`ModuleNotFoundError: No module named 'tkinter'`.** Tk is missing for
|
|
165
|
+
this Python: `sudo apt install python3-tk` (Debian/Ubuntu) or
|
|
166
|
+
`sudo dnf install python3-tkinter` (Fedora).
|
|
167
|
+
|
|
168
|
+
## Known limitations
|
|
169
|
+
|
|
170
|
+
- The `.deb` depends on the distribution's `python3` and `python3-tk`; it
|
|
171
|
+
does not bundle a Python runtime.
|
|
172
|
+
- Clipboard managers or other software on the machine may capture copied
|
|
173
|
+
passphrases; that is outside the app's control.
|
|
174
|
+
- The Windows build is not code-signed, so the first launch always goes
|
|
175
|
+
through a SmartScreen warning (see Troubleshooting).
|
|
176
|
+
|
|
177
|
+
## Building from source
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
git clone https://github.com/zxmuffin/dicemint.git
|
|
181
|
+
cd dicemint
|
|
182
|
+
python -m pip install . # installs the `dicemint` command
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Development dependencies (PyInstaller, pytest):
|
|
186
|
+
`python -m pip install -r requirements.txt`
|
|
187
|
+
|
|
188
|
+
| Task | Command | Output |
|
|
189
|
+
|---|---|---|
|
|
190
|
+
| Regenerate the embedded wordlists | `python build_embed.py` | `dicemint_words.py` (generated, never edit by hand) |
|
|
191
|
+
| Build the Windows executable | `python build_exe.py` | `Dicemint.exe` in the repository root |
|
|
192
|
+
| Build the Debian package | `bash packaging/build-deb.sh` (needs `dpkg-deb`) | `dicemint_<version>_all.deb` |
|
|
193
|
+
|
|
194
|
+
## License
|
|
195
|
+
|
|
196
|
+
Code is MIT
|
|
197
|
+
([`LICENSE`](https://github.com/zxmuffin/dicemint/blob/master/LICENSE)). The
|
|
198
|
+
bundled wordlists are published by the Electronic Frontier Foundation under
|
|
199
|
+
CC BY 3.0 — see
|
|
200
|
+
[`THIRD_PARTY_NOTICES.md`](https://github.com/zxmuffin/dicemint/blob/master/THIRD_PARTY_NOTICES.md).
|
|
201
|
+
No endorsement by the EFF is implied.
|
|
202
|
+
|
|
203
|
+
## Disclaimer
|
|
204
|
+
|
|
205
|
+
The code was written by an AI assistant. The design decisions, the GUI
|
|
206
|
+
layout and the product scope were defined and reviewed by a human.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- doc-class: living -->
|
|
2
|
+
# Third-party notices
|
|
3
|
+
|
|
4
|
+
Dicemint bundles third-party material that is not covered by the MIT
|
|
5
|
+
license in `LICENSE`.
|
|
6
|
+
|
|
7
|
+
## EFF Diceware wordlists
|
|
8
|
+
|
|
9
|
+
- **Files**: `dictionary/eff_large_wordlist.txt` (7776 words),
|
|
10
|
+
`dictionary/eff_short_wordlist_1.txt` (1296 words),
|
|
11
|
+
`dictionary/eff_short_wordlist_2_0.txt` (1296 words), and the same
|
|
12
|
+
lists embedded in compressed form in `dicemint_words.py`.
|
|
13
|
+
- **Source**: Electronic Frontier Foundation, https://www.eff.org/dice
|
|
14
|
+
- **License**: Creative Commons Attribution 3.0,
|
|
15
|
+
https://creativecommons.org/licenses/by/3.0/
|
|
16
|
+
- **Attribution**: the wordlists are published by the Electronic Frontier
|
|
17
|
+
Foundation. Dicemint redistributes them unmodified; the dice codes are
|
|
18
|
+
stripped and the words are embedded for offline use.
|
|
19
|
+
|
|
20
|
+
No endorsement by the Electronic Frontier Foundation is implied.
|