https://github.com/deltacircuit/eff-dice-generator
A passphrase generator, powered by eff.org's dice words
https://github.com/deltacircuit/eff-dice-generator
eff-dice eff-wordlists passphrase passphrase-generator
Last synced: 15 days ago
JSON representation
A passphrase generator, powered by eff.org's dice words
- Host: GitHub
- URL: https://github.com/deltacircuit/eff-dice-generator
- Owner: DeltaCircuit
- License: mit
- Created: 2018-04-18T13:42:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-21T13:58:11.000Z (over 8 years ago)
- Last Synced: 2025-10-31T09:40:04.492Z (9 months ago)
- Topics: eff-dice, eff-wordlists, passphrase, passphrase-generator
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eff-dice-generator
Create strong passphrases using eff.org suggested wordlists.
## Installation
```javascript
npm install eff-dice-generator
```
or
```javascript
yarn add eff-dice-generator
```
## Usage
```javascript
const generatePassphrase = require("eff-dice-generator");
const passPhrase = generatePassphrase(5);
console.log(passPhrase);
```
### generatePassphrase (no_of_dice, is_short)
* no_of_dice: The no. of dice you want to use. Either 4 / 5
* is_short: Use the short wordlist. (Applicable for only _4 dice roll_)
Footnote: Since this package contains the entire wordlist, when importing, use **code splitting** to avoid large bundle sizes.