passphrase-generator
Assemble a Diceware-style passphrase from a list of words. Returns the joined string, the word count, and an entropy estimate in bits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| digit | No | Optional decimal digit (0–9) appended to the end of the passphrase. Omit to skip the digit. | |
| words | Yes | The words to assemble into the passphrase, in order. Pick at least 2, at most 20. Each word must be non-empty. | |
| separator | Yes | Character placed between words. One of '-' (hyphen), '_' (underscore), ' ' (space), or '.' (dot). | |
| capitalize | Yes | When true, the first letter of each word is uppercased. When false, words are left as-is. | |
| dictionarySize | Yes | Size of the wordlist the caller picked from. Used to compute entropy bits. Defaults to 7776 (the EFF Long Wordlist). Pass the actual source size if you used a different list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strength | Yes | Coarse strength label based on entropy: <50 weak, 50–69 fair, 70–99 strong, ≥100 very strong. | |
| wordCount | Yes | Number of words in the passphrase. | |
| passphrase | Yes | The assembled passphrase, ready to copy. | |
| entropyBits | Yes | Estimated entropy in bits, computed as log2(dictionarySize) × wordCount. Higher is harder to brute-force. |