~gagbo/diceware.py

ee7ff790 — Gerry Agbobada 2 years ago master
Try to fix the requirements for pylint
e6f92041 — Gerry Agbobada 2 years ago
Fix typo in requirements file
f8871008 — Gerry Agbobada 2 years ago
Use flake8 for linting; rename .flake8 for pyls
d6e9eefb — Gerry Agbobada 2 years ago
Refactor code to add pyflakes and pylint to CI

Now there is more information displayed
91f221a2 — Gerry Agbobada 2 years ago
Add Ack for bundled list, lint README
d40671f1 — Gerry Agbobada 2 years ago
Minor lint
5e095495 — Gerry Agbobada 2 years ago
Ensure unique random_generator in DicewareResult

This was the issue with the tests running non-system random for
deterministic passphrases.

Signed-off-by: Gerry Agbobada <gagbobada+git@gmail.com>
294519bd — Gerry Agbobada 2 years ago
Third try : CI over, add verbosity flags for better visualization
d095e86e — Gerry Agbobada 2 years ago
Second try : use pip3 and not pip
83c871e7 — Gerry Agbobada 2 years ago
First try at CI.

My PB is around 10 commits to make this work. So there's probably going
to be 10 commits until this works
690fae7a — Gerry Agbobada 2 years ago
Add tests for diceware library

These basic tests are there to train myself into getting a correct
work environment and good workflow for integrated python projects.

There is even a failing test so I can try to get a watcher to run
tests automatically until the tests are fixed. Totally calculated /s
75053a83 — Gerry Agbobada 2 years ago
Make it clear that lists should have 5-dice words

The number 5 is currently hardcoded in a few places (most notably the
key generation for the dictionnary, but also in 'error handling' when
reading a new wordlist, or when actually generating the word with only
5-uples). So it's better to warn users at least in the documentation

Signed-off-by: Gerry Agbobada <gagbobada+git@gmail.com>
51915871 — Gerry Agbobada 2 years ago
Parse command line arguments and clean up stdout

Now the utility will complain when not used correctly with the
automatically generated message from argparse, and only the generated
passphrase stayed in stdout, so it is ready to be called and piped to
another software if you like

Signed-off-by: Gerry Agbobada <gagbobada+git@gmail.com>
a14f875c — Gerry Agbobada 2 years ago
Print entropy information on stderr
2cd106da — Gerry Agbobada 2 years ago
Clean up interface in front-facing executable

Signed-off-by: Gerry Agbobada <gagbobada+git@gmail.com>
3220fc47 — Gerry Agbobada 2 years ago
Lint code
b45ef44e — Gerry Agbobada 3 years ago
DicewareResult : rename ambiguous 'words' attribute to 'rolls'
91d4a54a — Gerry Agbobada 3 years ago
Refactoring : modularize the library

- Put the code for translating list to python dict in separate module

- Put the code for the DicewareResult class in separate module

Now the 'main' module can focus on argument handling (with argparse) to
make a proper CLI for the method
87923d7f — Gerry Agbobada 3 years ago
Diceware gen : Make a usable password generator

- Added a reader to transform a words list into a dictionary

- Added a method to DicewareResult to transform DicewareResult.words
(which are actually rolls) into a password using a words list passed as
dictionary

- Added a check to salt the passphrase with a random symbol if the user
asked for it (during the creation of the DicewareResult object)
ec920351 — Gerry Agbobada 3 years ago
Data : add the french word list
Next