Skip to content
Snippets Groups Projects
Commit 36b9624b authored by ulif's avatar ulif
Browse files

More docs.

parent 977a8340
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,14 @@ def insert_special_char(word, specials=SPECIAL_CHARS, rnd=None):
def get_passphrase(wordnum=6, specialsnum=1, delimiter='', lang='en',
capitalized=True):
"""Get a diceware passphrase.
The passphrase returned will contain `wordnum` words deliimted by
`delimiter`.
If `capitalized` is ``True``, all words will be capitalized.
The wordlist to pick words from is determined by `lang`,
representing a language.
"""
word_list = get_wordlist(get_wordlist_path(lang))
rnd = SystemRandom()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment