Skip to content

Commit 974ef51

Browse files
committed
Fix bug for passphrase lenghts != 7
1 parent 152476b commit 974ef51

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

Readme.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Yahtzee
2+
Yahtzee is a command-line tool for generating secure passphrases using the Diceware method.
3+
4+
# About
5+
[Diceware](http://world.std.com/~reinhold/diceware.html) is a method for securely generating passphrases with high amounts of entropy. It is best employed by rolling physical dice, but let's be honest: I do not own five dice, nor do I wish to reach for a set of dice when I wish to generate a passphrase.
6+
7+
This tool uses [Random.org](http://www.random.org) to generate five random integers for each word in your passphrase, which
8+
9+
# Co-creators
10+
Noah Sluss
11+
Steve Webster
12+
13+
#### Node-Gyp
14+
[Node-gyp](https://github.com/TooTallNate/node-gyp) is needed to build this module. It should be installed globally, that is, with the `-g` switch:
15+
16+
npm install -g node-gyp

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "yahtzee",
2+
"name": "yahtzee-pw",
33
"version": "0.0.1",
44
"description": "",
55
"main": "yahtzee.js",
@@ -8,15 +8,16 @@
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/bportnoy/diceware.git"
11+
"url": "https://github.com/bportnoy/yahtzee.git"
1212
},
1313
"author": "",
1414
"license": "ISC",
1515
"bugs": {
16-
"url": "https://github.com/bportnoy/diceware/issues"
16+
"url": "https://github.com/bportnoy/yahtzee/issues"
1717
},
18-
"homepage": "https://github.com/bportnoy/diceware",
18+
"homepage": "https://github.com/bportnoy/yahtzee",
1919
"dependencies": {
20+
"fs": "0.0.2",
2021
"randomorg-js": "^1.0.0"
2122
}
2223
}

yahtzee.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var fs = require('fs');
22
var key = require('./api-key');
3-
var n = process.argv[2] || 7;
3+
var n = +process.argv[2] || 7;
44
var RandomJs = require('randomorg-js');
55
var randomJs = new RandomJs();
66
var words = [];

0 commit comments

Comments
 (0)