dicemint 1.0.0__py3-none-any.whl

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.
@@ -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
+ [![PyPI](https://img.shields.io/pypi/v/dicemint.svg)](https://pypi.org/project/dicemint/)
40
+ [![Python versions](https://img.shields.io/pypi/pyversions/dicemint.svg)](https://pypi.org/project/dicemint/)
41
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](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
+ ![Dicemint window](https://raw.githubusercontent.com/zxmuffin/dicemint/master/screenshot.png)
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.
@@ -0,0 +1,9 @@
1
+ dicemint_core.py,sha256=29YaewdExTnBL-dppNZ99UaRuyK2jlnQExEq-NJlbgU,15857
2
+ dicemint_gui.py,sha256=1l_z2QZgTgGWTIeKATpGNSNO5qIho3H7EF-4ARnBGl8,23436
3
+ dicemint_words.py,sha256=cwtlvukagN6AvtDcsUy3H3MGpd9_29XG68VX39M6Bb0,77716
4
+ dicemint-1.0.0.dist-info/licenses/LICENSE,sha256=4W51TyWsHoJhrxd1lMjNgnoym_ojj3f-FzMXowSKWPw,1078
5
+ dicemint-1.0.0.dist-info/METADATA,sha256=W9NQwXHf4ZFLlXk2He7o5yJgLTbvTtQULtN3rzexSko,9817
6
+ dicemint-1.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
7
+ dicemint-1.0.0.dist-info/entry_points.txt,sha256=arSutwuRPl18zOvg7A4MfugWNhesbbmMf8cCfb96Cl8,43
8
+ dicemint-1.0.0.dist-info/top_level.txt,sha256=aETQ70rgJf15K2ryO1ADSTztk2LJhrwTkNviyLK-zDs,42
9
+ dicemint-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [gui_scripts]
2
+ dicemint = dicemint_gui:main
@@ -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,3 @@
1
+ dicemint_core
2
+ dicemint_gui
3
+ dicemint_words