Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adibro500/diceware-adibro
https://github.com/adibro500/diceware-adibro
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/adibro500/diceware-adibro
- Owner: adibro500
- Created: 2019-07-02T14:58:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-02T15:40:18.000Z (over 5 years ago)
- Last Synced: 2024-12-07T09:19:25.524Z (about 2 months ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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 !