Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adibro500/diceware-adibro


https://github.com/adibro500/diceware-adibro

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

        

# diceware-adibro
#### get passwords from the famous diceware system
# Installation
```
npm i --save diceware-adibro
```
# Usage
```
const diceware = require('diceware-adibro');
const wordList = require('diceware-adibro/diceware-adibro-wordlist');
let options = {
numOfWords: 9, // password no. of words
wordSeperator: "&" // words seperated by
}
const dice = new diceware();
console.log(dice.randomWord()); // get single random word
console.log(dice.preparePassword(options)); //get password phrase with options
console.log(dice.preparePassword()); // prepare password with default settings
console.log("specific json", wordList['11111']); // get specific word
console.log("all json", wordList); // get all diceware dictionary
```

Have fun !