Module: diceware
Variables
AVAILABLE_LANGUAGES
• Const
AVAILABLE_LANGUAGES: { label
: string
= "English"; value
: string
= "en" }[]
Defined in
Functions
generatePassphrase
▸ generatePassphrase(nWords?
, separator?
, languages?
): Promise
<string
>
Generates a passphrase consisting of a number of words randomly selected from a word list. Motivated by http://world.std.com/~reinhold/diceware.html
Parameters
Name | Type | Default value |
---|---|---|
nWords |
number |
4 |
separator |
string |
"-" |
languages |
string [] |
undefined |
Returns
Promise
<string
>