Generate norwegian passphrases
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Generate passphrases

This repository also contains a web version of the passphrase generator available through GitHub pages at The web version is written in Elm.

This is a small python script that reads words from a text file, and picks a number of them randomly to create a passphrase. A sample file with norwegian words is included in the repository.

The script is inspired by


> python [-h] [-w WORDS] [-s] [-a ALPHABET] [--min MIN] [--max MAX]

positional arguments:
  filename              Dictionary file. One word per line

optional arguments:
  -h, --help            show this help message and exit
  -w WORDS, --words WORDS
                        Number of words in generated phrase
  -s, --space           Add space between words
  -a ALPHABET, --alphabet ALPHABET
                        Alphabet size
  --min MIN             Minimum word length
  --max MAX             Maximum word length


> python -w 6 --space --max 7 liste.txt
uskadd skruver arret joikes klappa blyregn

If method and dictionary is known: 96 bits
Unknown method, alphabet size 95: 295 bits