-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
322 lines (315 loc) · 15 KB
/
index.html
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Ronni Elken Lindsgaard">
<meta name="description" content="RndPhrase provides the same functionality as a password manager. It is more secure than an on-line password manager as you need not trust a service provider. It is more portable than an off-line password manager as you don't need to store a database file.">
<title>RndPhrase Improved</title>
<script src="js/knockout-3.2.0.js"></script>
<script src="js/jquery-1.11.1.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<h2>
RndPhrase Improved
<small data-bind>v1.0.0-alpha.2</small>
</h2>
<form class="form-horizontal" role="form">
<fieldset>
<legend>RndPhrase</legend>
<div class="form-group col-md-12">
<label for="seed">Seed:</label>
<input type="password"
id="seed"
placeholder="correct horse battery staple"
class="form-control"
data-bind="textInput: seed
autofocus" />
</div>
<div class="form-group col-md-12">
<label for="password">Password:</label>
<input type="password"
id="password"
placeholder="1234"
class="form-control"
data-bind="textInput: password" />
</div>
<div class="form-group col-md-12">
<label for="uri">Uri:</label>
<input type="text"
id="uri"
placeholder="rndphra.se"
class="form-control"
data-bind="textInput: uri" />
</div>
<div class="form-group">
<label for="hash" class="col-md-1 control-label">
Hash
</label>
<div class="col-md-1">
<input type="text"
id="hash"
class="form-control input-small"
data-bind="textInput: hash" />
</div>
</div>
</fieldset>
<fieldset>
<legend>
General configuration
<label for="use-legacy-mode" class="legend-label">
<input type="checkbox"
id="use-legacy-mode"
data-bind="checked: use_legacy_mode" />
Use Legacy mode
</label>
</legend>
<div class="form-group">
<label for="version" class="col-md-1 control-label">
Version
</label>
<div class="col-md-1">
<input type="number"
min="1"
step="1"
id="version"
class="form-control"
data-bind="textInput: version" />
</div>
<div data-bind="visible: !use_legacy_mode()">
<label for="size" class="col-md-1 control-label">
Minimal size
</label>
<div class="col-md-1">
<input type="number"
min="1"
step="1"
id="size"
class="form-control"
data-bind="textInput: size" />
</div>
</div>
</div>
</fieldset>
<!-- Begin numeric form control -->
<fieldset data-bind="visible: !use_legacy_mode()">
<legend>
Numeric character configuration
<label for="use-numeric-defaults" class="legend-label">
<input type="checkbox"
id="use-numeric-defaults"
data-bind="checked: use_numeric_defaults" />
Use defaults
</label>
</legend>
<div class="form-group"
data-bind="visible: !use_numeric_defaults()">
<label for="numeric-min"
class="col-md-1 control-label">
Min
</label>
<div class="col-md-1">
<input type="number"
min="0"
step="1"
id="numeric-min"
class="form-control"
data-bind="textInput: numeric_min" />
</div>
<label for="numeric-max"
class="col-md-1 control-label">
Max
</label>
<div class="col-md-1">
<input type="number"
min="0"
step="1"
id="numeric-max"
class="form-control input-small"
data-bind="textInput: numeric_max" />
</div>
<label for="numeric-alphabet"
class="col-md-1 control-label">
Alphabet
</label>
<div class="col-md-4">
<input type="text"
id="numeric-alphabet"
class="form-control input-small"
data-bind="textInput: numeric_alphabet" />
</div>
</div>
</fieldset>
<!-- Begin capital form control -->
<fieldset data-bind="visible: !use_legacy_mode()">
<legend>
Capital character configuration
<label for="use-capital-defaults" class="legend-label">
<input type="checkbox"
id="use-capital-defaults"
data-bind="checked: use_capital_defaults" />
Use defaults
</label>
</legend>
<div class="form-group"
data-bind="visible: !use_capital_defaults()">
<label for="capital-min"
class="col-md-1 control-label">
Min
</label>
<div class="col-md-1">
<input type="number"
min="0"
step="1"
id="capital-min"
class="form-control"
data-bind="textInput: capital_min" />
</div>
<label for="capital-max"
class="col-md-1 control-label">
Max
</label>
<div class="col-md-1">
<input type="number"
min="0"
step="1"
id="capital-max"
class="form-control input-small"
data-bind="textInput: capital_max" />
</div>
<label for="capital-alphabet"
class="col-md-1 control-label">
Alphabet
</label>
<div class="col-md-4">
<input type="text"
id="capital-alphabet"
class="form-control input-small"
data-bind="textInput: capital_alphabet" />
</div>
</div>
</fieldset>
<!-- Begin minuscule form control -->
<fieldset data-bind="visible: !use_legacy_mode()">
<legend>
Minuscule character configuration
<label for="use-minuscule-defaults"
class="legend-label">
<input type="checkbox"
id="use-minuscule-defaults"
data-bind="checked: use_minuscule_defaults" />
Use defaults
</label>
</legend>
<div class="form-group"
data-bind="visible: !use_minuscule_defaults()">
<label for="minuscule-min"
class="col-md-1 control-label">
Min
</label>
<div class="col-md-1">
<input type="number"
min="0"
step="1"
id="minuscule-min"
class="form-control"
data-bind="textInput: minuscule_min" />
</div>
<label for="minuscule-max"
class="col-md-1 control-label">
Max
</label>
<div class="col-md-1">
<input type="number"
min="0"
step="1"
id="minuscule-max"
class="form-control input-small"
data-bind="textInput: minuscule_max" />
</div>
<label for="minuscule-alphabet"
class="col-md-1 control-label">
Alphabet
</label>
<div class="col-md-4">
<input type="text"
id="minuscule-alphabet"
class="form-control input-small"
data-bind="textInput: minuscule_alphabet" />
</div>
</div>
</fieldset>
<!-- Begin special form control -->
<fieldset data-bind="visible: !use_legacy_mode()">
<legend>
Special character configuration
<label for="use-special-defaults" class="legend-label">
<input type="checkbox"
id="use-special-defaults"
data-bind="checked: use_special_defaults" />
Use defaults
</label>
</legend>
<div class="form-group"
data-bind="visible: !use_special_defaults()">
<label for="special-min"
class="col-md-1 control-label">
Min
</label>
<div class="col-md-1">
<input type="number"
min="0"
step="1"
id="special-min"
class="form-control"
data-bind="textInput: special_min" />
</div>
<label for="special-max"
class="col-md-1 control-label">
Max
</label>
<div class="col-md-1">
<input type="number"
min="0"
step="1"
id="special-max"
class="form-control input-small"
data-bind="textInput: special_max" />
</div>
<label for="special-alphabet"
class="col-md-1 control-label">
Alphabet
</label>
<div class="col-md-4">
<input type="text"
id="special-alphabet"
class="form-control input-small"
data-bind="textInput: special_alphabet" />
</div>
</div>
</fieldset>
</form>
</div>
<footer>
<p>
RndPhrase is released under the MIT license -
© Ronni Elken Lindsgaard
<a href="https://twitter.com/rlindsgaard">
@rlindsgaard
</a> 2014-2016
</p>
</footer>
<script src="js/bootstrap.min.js"></script>
<script data-main="js/main" src="js/require.js"></script>
</body>
</html>