Skip to content

Commit

Permalink
add Diceware Greek word list
Browse files Browse the repository at this point in the history
  • Loading branch information
atoponce committed Dec 30, 2020
1 parent c338a56 commit 17af4d4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ Options are:
LANGUAGE must be one of:
Basque, Beale, Bulgarian, Catalan, Chinese,
Czech, Danish, Dutch, English, Esperanto,
Estonian, Finnish, French, German, Hebrew,
Hungarian, Italian, Japanese, Latin, Maori,
Norwegian, Polish, Portuguese, Romanian,
Russian, Slovak, Slovenian, Spanish, Swedish,
Turkish
Estonian, Finnish, French, German, Greek,
Hebrew, Hungarian, Italian, Japanese, Latin,
Maori, Norwegian, Polish, Portuguese,
Romanian, Russian, Slovak, Slovenian, Spanish
Swedish, Turkish
-D, --dicekey Generate a hard-coded 198-bit entropy text-based
DiceKeys key. Format of the key is:
<character><side><orientation> where:
Expand Down Expand Up @@ -61,7 +61,6 @@ Options are:
-s, --system Use /usr/share/dict/words for the passphrase.
NOTE: larger word lists have more obscure words.
-t, --traditional Use Traditional Chinese with Bitcoin.


Output can be valid JSON, meant to be both human and machine parseable. Default
is unformatted plaintext:
Expand Down
1 change: 1 addition & 0 deletions lists/dicewareGreek.js

Large diffs are not rendered by default.

17 changes: 12 additions & 5 deletions nodepassgen
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ function printUsage () {
console.log(' LANGUAGE must be one of:')
console.log(' Basque, Beale, Bulgarian, Catalan, Chinese,')
console.log(' Czech, Danish, Dutch, English, Esperanto,')
console.log(' Estonian, Finnish, French, German, Hebrew,')
console.log(' Hungarian, Italian, Japanese, Latin, Maori,')
console.log(' Norwegian, Polish, Portuguese, Romanian,')
console.log(' Russian, Slovak, Slovenian, Spanish, Swedish,')
console.log(' Turkish')
console.log(' Estonian, Finnish, French, German, Greek,')
console.log(' Hebrew, Hungarian, Italian, Japanese, Latin,')
console.log(' Maori, Norwegian, Polish, Portuguese,')
console.log(' Romanian, Russian, Slovak, Slovenian, Spanish')
console.log(' Swedish, Turkish')
console.log(' -D, --dicekey Generate a hard-coded 198-bit entropy text-based')
console.log(' DiceKeys key. Format of the key is:')
console.log(' <character><side><orientation> where:')
Expand Down Expand Up @@ -216,6 +216,13 @@ function generateDiceware () {
lang = 'German'
break
}
case 'Greek':
case 'greek': {
const dicewareGreek = require('./lists/dicewareGreek')
wordlist = dicewareGreek.wordlist
lang = 'Greek'
break
}
case 'Hebrew':
case 'hebrew': {
const dicewareHebrew = require('./lists/dicewareHebrew')
Expand Down
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
./nodepassgen -o diceware -d Finnish
./nodepassgen -o diceware -d French
./nodepassgen -o diceware -d German
./nodepassgen -o diceware -d Greek
./nodepassgen -o diceware -d Hebrew
./nodepassgen -o diceware -d Hungarian
./nodepassgen -o diceware -d Italian
Expand Down

0 comments on commit 17af4d4

Please sign in to comment.