-
Notifications
You must be signed in to change notification settings - Fork 67
/
index.htm
146 lines (115 loc) · 6.3 KB
/
index.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="An easy way to look up a Diceware passphase.">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'>
<title>Diceware Passphrase Lookup and Generator</title>
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="stylesheet" href="css/styles.css" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="js/main-min.js"></script>
<script>
var dicelist = getUrlVars()["dicelist"];
if (dicelist == "beale") {
document.write('\x3Cscript src="js/lists/bealelist-min.js">\x3C/script>');
var wordlist = 'Beale';
}
else if (dicelist == "catalan") {
document.write('\x3Cscript src="js/lists/catalan-min.js">\x3C/script>');
var wordlist = 'Catalan';
}
else if (dicelist == "esperanto") {
document.write('\x3Cscript src="js/lists/esperanto-min.js">\x3C/script>');
var wordlist = 'Esperanto';
}
else if (dicelist == "japanese") {
document.write('\x3Cscript src="js/lists/japanese-min.js">\x3C/script>');
var wordlist = 'Japanese';
}
else if (dicelist == "dutch") {
document.write('\x3Cscript src="js/lists/dutch-min.js">\x3C/script>');
var wordlist = 'Dutch';
}
else if (dicelist == "polish") {
document.write('\x3Cscript src="js/lists/polish-min.js">\x3C/script>');
var wordlist = 'Polish';
}
else if (dicelist == "swedish") {
document.write('\x3Cscript src="js/lists/swedish-min.js">\x3C/script>');
var wordlist = 'Swedish';
}
else {
document.write('\x3Cscript src="js/lists/diceware-min.js">\x3C/script>');
var wordlist = 'Diceware';
}
</script>
<script src="js/lists/special-min.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="w900">
<div class="w100pc">
<div class="header">
<h1 class="header__title">Diceware Passphrase Lookup and Generator</h1>
<p class="header__info">
This generator makes passphrases using the <a href="http://world.std.com/~reinhold/diceware.html">Diceware</a> <a href="http://world.std.com/~reinhold/diceware.wordlist.asc">wordlist</a> by Arnold G. Reinhold, following instructions that can be found <a href="http://world.std.com/~reinhold/diceware.html">here</a>.
It was inspired by <a href="https://firstlook.org/theintercept/2015/03/26/passphrases-can-memorize-attackers-cant-guess/">this</a> article.
You should trust the generator only as much as you trust your browser to generate a <a href="https://www.google.co.uk/#q=how+random+is+math.random">random number</a>,
as this is used to emulate a dice roll. The Diceware FAQ <a href="http://world.std.com/~reinhold/dicewarefaq.html#electronic">
explicitly says</a> <span class="header__info-red">not to use an
electronic version</span> (so again, <span class="header__info-red">use the generator with caution</span>). To get it really random, use a dice yourself to roll 5 numbers then look them up. </p>
<p class="header__info">
Very simply, each click of '<b>New Word</b>' will generate 5 numbers between 1 and 6 and combine them into one 5 digit number. Each number
(between 11111 and 66666) is associated with a word on the Diceware list. You should generate a minimum of <a href="http://world.std.com/~reinhold/dicewarefaq.html#howlong">6 new words</a>. For extra security
use the '<b>New Special</b>' button to generate a <a href="http://world.std.com/~reinhold/dicewarefaq.html#specialchars">special character</a> (based on 2 rolls) at some point in your passphrase. Any lookups must be
2 or 5 characters long and consist of numbers between 1 and 6. You can click any word to remove it from the displayed passphrase.
</p>
</div>
<h2 class="list-title">Word list: <span></span></h2>
<div class="new-diceword"></div>
<div class="new-word-button">
<div>
<a href="#" class="new-word-button__button js__new-word-button">New Word</a>
<a href="#" class="new-word-button__button js__new-special-button">New Special</a>
</div>
<div>
<span>Or</span>
<input class="new-word-button__lookup js__new-lookup-input" type="number" maxlength="5">
<a href="#" class="new-word-button__button js__new-lookup-button">New Lookup</a>
</div>
</div>
<div class="other-list">
<h3>Use a different word list:</h3>
<ul>
<li><a href="?dicelist=beale">Alternative list</a> by Alan Beale</li>
<li><a href="?dicelist=catalan">Catalan</a> by <a href="https://github.com/Jautenim/diceware-cat">Marcel Hernandez</a></li>
<li><a href="?dicelist=german">German</a> by Benjamin Tenne under GNU</li>
<li><a href="?dicelist=esperanto">Esperanto</a> by Makis Diras</li>
<li><a href="?dicelist=japanese">Japanese</a> by Hiroshi Yuki and J Greely</li>
<li><a href="?dicelist=dutch">Dutch</a> by Bart Van den Eynde under GNU</li>
<li><a href="?dicelist=polish">Polish</a> by Piotr (DrFugazi) Tarnowski</li>
<li><a href="?dicelist=swedish">Swedish</a> by Magnus Bodin</li>
<li>Your list? Drop me a message on <a href="http://twitter.com/yesiamben">Twitter</a></li>
</ul>
</div>
<p class="about">
<b>Loving put together by <a href="http://twitter.com/yesiamben">Ben</a>.</b><br />
All the source for this project is available on <a href="https://github.com/yesiamben/diceware">GitHub</a>.<br />
Diceware is a trademark of <a href="http://world.std.com/~reinhold/">A G Reinhold</a>. The Diceware wordlist is used under
the <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons CC-BY 3.0 license</a> - thank you!
</p>
<div class="clear"></div>
</div>
</div>
</body>
</html>