- Dec 21, 2019
-
-
ulif authored
-
Many thanks to @mayurilahane for spotting this typo. Also small contributions are needed to make better software :)
-
- May 28, 2019
-
-
Wordlist in pt-br was first introduced in 7743ed55. The differences to this one are: - 9-characters words are introduced. - suffixes removal is made after accounting for popularity. - less frequent words that differ only in the last character are removed. The current pt-br wordlist was generated as follows: 1. Download a dump of portuguese Wikipedia pages, process all pages and determine the frequency of each word. 2. Start from /usr/share/dict/brazilian and filter out: - words not matching /^[a-z]+$/, - words shorter than 4 characters, and - words longer than 9 characters. 3. Sort remaining words using pt Wikipedia frequencies. 4. Take the top 30K words (just because after filtering we still get roughly the amount we need). 5. Filter out: - all words that are a suffix of any other word in the list. - less frequent words that differ only by the last character. 6. Take the 7776 most frequent words. No further curation was made.
-
- Apr 26, 2019
-
-
The wordlist was generated from 2 different sources of words: - The file /usr/share/dict/brazilian from Debian's wbrazilian package. - A dump of the pages of Wikipedia in portuguese. The final pt-br wordlist was generated as follows: 1. Download a dump of portuguese Wikipedia pages, process all pages and determine the frequency of each word. 2. Start from /usr/share/dict/brazilian and filter out: - words not matching /^[a-z]+$/, - words shorter than 4 characters, and - words longer than 8 characters. 3. Remove all words that are a suffix of any other word in the list. 4. Sort remaining words using pt Wikipedia frequencies. 5. Take the 7776 most frequent words. No further curation was made. There are obvious drawbacks in this approach (eg: many very frequent words are left out because they are either too short or too long or contain accents or cedilla), but it was the best cost-benefit i could think about.
-
- Dec 11, 2018
-
-
ulif authored
`pycodestyle` complained about non raw-string expressions.
-
- Mar 23, 2018
-
-
ulif authored
We received an official permission from Arnold G Reinhold to use the name 'diceware' under the following conditions: 1) we use Pythons `system.random` as default source of randomness 2) we continue to provide support for real dice 3) we do not use the name for other tools than this commandline tool 4) we include the trademark statement commited hereby. Many thanks go to Mr. Reinhold. Fixes #48.
-
- Feb 09, 2018
-
-
ulif authored
When calling `logger.removeHandler(h)` with one of our custom `NullHandler` instances, things crashed.
-
- Feb 07, 2018
-
-
Bhavin Gandhi authored
Using `IOError` for compatibility, from Python 3.3 `IOError` is alias of `OSError` https://stackoverflow.com/a/28633573/6202405 Checking the errno of 'No such file or directory' so that only that exception will be catched. https://docs.python.org/2/library/errno.html https://stackoverflow.com/a/39414133 Signed-off-by:
Bhavin Gandhi <bhavin7392@gmail.com>
-
- Jan 27, 2018
-
-
ulif authored
Normal errors should be displayed by default, even if they are not catastrophic.
-
- Jan 01, 2018
-
-
ulif authored
-
- Aug 31, 2017
- Aug 28, 2017
-
-
drebs authored
The path to wordlist files is hardcoded in the generated sphinx documentation and because it may differ depending on how the package is installed this creates different problems: - the path hardcoded in the online api documentation may differ from the one in each installation, leading to incorrect information provided to the user of the api. - packaging diceware documentation to specific operating systems may generate unreproducible packages. This commit replaces the variable WORDLISTS_DIR by a function called get_wordlists_dir() that delays the construction of the path instead of doing it during module loading.
-
- Jun 06, 2017
-
-
ulif authored
-
- Jun 04, 2017
- May 31, 2017
-
-
ulif authored
The `argparse.FileType` type is considered bad style. Cf. http://bugs.python.org/issue13824. With this FileType we cannot tell when to close a file after reading (which should be done for most regular wordlists) or not (in case of input from stdin).
-
- May 29, 2017
- May 28, 2017
-
-
ulif authored
Files already opened by third-parties should be closed by them.
-
- May 26, 2017
-
-
ulif authored
-
- May 23, 2017
-
-
ulif authored
Since Python3.2 SafeConfigParser is an alias for ConfigParser and emits warnings when imported. We want to avoid these warnings.
-
- Apr 24, 2017
- Mar 04, 2017
-
-
ulif authored
When using `realdice` randomness source and picking values out of short sequences (sequences shorter than the number of dice sides), we might require additional dice throws (if a value rolled is not in range of sequence length). We now print a hint when this happens.
-
- Mar 03, 2017
- Feb 27, 2017
- Feb 18, 2017
-
- Jan 06, 2017
-
-
ulif authored
-
- Dec 17, 2016
-
-
Jay Mao authored
RealDiceRandomSource and its tests updated to expect argparse.Namespace objects instead of dicts (fix for using the 'realdice' randomness source)
-
- Aug 03, 2016
-
-
ulif authored
Make the tests succeed. In wordlists we now also accept '1-2-3-4 someterm' for numbered entries. We still support '1234 somterm'.
-
- Aug 02, 2016
-
-
ulif authored
The Electronic Frontier Foundation published own wordlists, which were, as it looks, carefully assembled. See https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases for details. We ship now with the long list.
-
- Jun 08, 2016
-
-
ulif authored
-