Try to fix the requirements for pylint
Fix typo in requirements file
Use flake8 for linting; rename .flake8 for pyls
Refactor code to add pyflakes and pylint to CI
Now there is more information displayed
Add Ack for bundled list, lint README
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>
Third try : CI over, add verbosity flags for better visualization
Second try : use pip3 and not pip
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
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
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>
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>
Print entropy information on stderr
DicewareResult : rename ambiguous 'words' attribute to 'rolls'
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
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)
Data : add the french word list