-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
249 lines (242 loc) · 9.51 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!--
PasswordMaker - Creates and manages passwords
Copyright (C) 2005 Eric H. Jung and LeahScape, Inc.
http://passwordmaker.org/
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or (at
your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESSFOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
<head>
<title>PasswordMaker. One Password To Rule Them All.™</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<pwm-script>
<script type="text/javascript" src="scripts/aes.js"></script>
<script type="text/javascript" src="scripts/passwordmaker.js"></script>
<script type="text/javascript" src="scripts/md4.js"></script>
<script type="text/javascript" src="scripts/md5.js"></script>
<script type="text/javascript" src="scripts/md5_v6.js"></script>
<script type="text/javascript" src="scripts/sha256.js"></script>
<script type="text/javascript" src="scripts/sha1.js"></script>
<script type="text/javascript" src="scripts/ripemd160.js"></script>
<script type="text/javascript" src="scripts/l33t.js"></script>
<script type="text/javascript" src="scripts/cookie.js"></script>
<script type="text/javascript" src="scripts/hashutils.js"></script>
<script type="text/javascript" src="scripts/select.js"></script>
<script type="text/javascript" src="scripts/bodyShow.js"></script>
</pwm-script>
</head>
<body>
<pwm-body>
<table cellpadding=5 border=0>
<tr>
<td width=195>Profile</td>
<td>
<select id="profileLB" name="profile" class="editable" onchange="loadProfile();">
<option value="!!!edit!!!" class="activateEdit">New Profile</option>
</select>
<script type="text/javascript">
/*
profileLB = new Bs_Dropdown();
profileLB.imgDir = 'scripts/blueShoes/components/dropdown/img/win2k/';
profileLB.setValue('Default');
profileLB.drawInto('profileLB');
profileLB.attachEvent('onChange', loadProfile);
*/
if(getCookie("profileList")!=null) {
// load the various profiles
var a = unescape(getCookie("profileList"));
var profileListArray = a.split("|");
for (var i=0; i<profileListArray.length; i++) {
var option = document.createElement("option");
option.text = unescape(profileListArray[i]);
EditableSelect.selectAddOption(document.getElementById("profileLB"), option);
if(i==0)
option.selected="selected";
}
}
else {
profileListArray = new Array("Default");
var option = document.createElement("option");
option.text = "Default";
EditableSelect.selectAddOption(document.getElementById("profileLB"), option);
option.selected="selected";
}
</script>
</td>
</tr>
<tr>
<td>Input Url</td>
<td>
<input class="standard" type="edit" id="preURL" onchange="populateURL();"
onkeyup="populateURL();" onkeydown="populateURL();" onkeypress="populateURL();"
oninput="populateURL();"/>
</td>
</tr>
<tr>
<td width=195>Master password</td>
<td>
<input class="standard" type="password" id="passwdMaster"
onchange="preGeneratePassword();" onkeyup="preGeneratePassword();"
onkeydown="preGeneratePassword();" onkeypress="preGeneratePassword();"
oninput="preGeneratePassword();"/>
</td>
</tr>
<tr>
<td>
<input type="button" value="Save master password" id="saveMasterBtn" onclick="saveMaster();" />
</td>
</tr>
<tr>
<td>Use l33t</td>
<td>
<select class="dropmenu" id="whereLeetLB" onchange="onWhereLeetLBChanged();preGeneratePassword();">
<option value="off">not at all</option>
<option value="before-hashing">before generating password</option>
<option value="after-hashing">after generating password</option>
<option value="both">before and after generating password</option>
</select>
</td>
</tr>
<tr>
<td>l33t Level</td>
<td>
<select class="dropmenu" id="leetLevelLB" onchange="preGeneratePassword();">
<option value="0">1</option>
<option value="1">2</option>
<option value="2">3</option>
<option value="3">4</option>
<option value="4">5</option>
<option value="5">6</option>
<option value="6">7</option>
<option value="7">8</option>
<option value="8">9</option>
</select>
</td>
</tr>
<tr>
<td>Hash Algorithm</td>
<td>
<select class="dropmenu" id="hashAlgorithmLB" onchange="preGeneratePassword();"
onkeyup="preGeneratePassword();" onkeydown="preGeneratePassword();"
onkeypress="preGeneratePassword();" oninput="preGeneratePassword();">
<option value="md4">MD4</option>
<option value="hmac-md4">HMAC-MD4</option>
<option value="md5">MD5</option>
<option value="md5_v6">MD5 Version 0.6</option>
<option value="hmac-md5">HMAC-MD5</option>
<option value="hmac-md5_v6">HMAC-MD5 Version 0.6</option>
<option value="sha1">SHA-1</option>
<option value="hmac-sha1">HMAC-SHA-1</option>
<option value="sha256">SHA-256</option>
<option value="hmac-sha256_fix">HMAC-SHA-256</option>
<option value="hmac-sha256">HMAC-SHA-256 Version 1.5.1</option>
<option value="rmd160">RIPEMD-160</option>
<option value="hmac-rmd160">HMAC-RIPEMD-160</option>
</select>
</td>
</tr>
<tr>
<td>URL Components</td>
<td>
<input type="checkbox" id="protocolCB" onclick="populateURL();" />Protocol<br/>
<input type="checkbox" id="subdomainCB" onclick="populateURL();" />Subdomain(s)<br/>
<input type="checkbox" id="domainCB" onclick="populateURL();" status="checked" />Domain<br/>
<input type="checkbox" id="pathCB" onclick="populateURL();" />Port, path, anchor, query parameters<br/>
</td>
</tr>
<tr>
<td>Using Text</td>
<td>
<input class="standard" type="edit" id="passwdUrl" onchange="preGeneratePassword();"
onkeyup="preGeneratePassword();" onkeydown="preGeneratePassword();"
onkeypress="preGeneratePassword();" oninput="preGeneratePassword();"/>
</td>
</tr>
<tr>
<td>Length of Generated Password</td>
<td>
<input class="standard" id="passwdLength" maxlength="3" size="3" value="12"
onchange="if (/\D/.test(this.value)) this.value='8';preGeneratePassword();"
onkeyup="if (/\D/.test(this.value)) this.value='8';preGeneratePassword();"
onkeydown="if (/\D/.test(this.value)) this.value='8';preGeneratePassword();"
onkeypress="if (/\D/.test(this.value)) this.value='8';preGeneratePassword();"
oninput="if (/\D/.test(this.value)) this.value='8';preGeneratePassword();"/>
</td>
</tr>
<tr>
<td>Username</td>
<td>
<input class="standard" id="usernameTB" onchange="preGeneratePassword();"
onkeyup="preGeneratePassword();" onkeydown="preGeneratePassword();"
onkeypress="preGeneratePassword();" oninput="preGeneratePassword();"/>
</td>
</tr>
<tr>
<td>Modifier</td>
<td>
<input class="standard" id="counter" onchange="preGeneratePassword();"
onkeyup="preGeneratePassword();" onkeydown="preGeneratePassword();"
onkeypress="preGeneratePassword();" oninput="preGeneratePassword();"/>
</td>
</tr>
<tr>
<td>Characters</td>
<td>
<select id="charset" name="charset" class="editable" onchange="preGeneratePassword();">
<option value="!!!edit!!!" class="activateEdit">Edit Character Set</option>
<option selected="selected">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()_-+={}|[]\:";'<>?,./</option>
<option>ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789</option>
<option>0123456789abcdef</option>
<option>0123456789</option>
<option>ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</option>
<option>`~!@#$%^&*()_-+={}|[]\:";'<>?,./</option>
</select>
<br/><span id="charMinWarning" style="display: none;">Two character minimum required</span>
</td>
<td><input type="button" class="button" value="Tips" onclick="onClickTips();"/></td>
</tr>
<tr>
<td>Password Prefix</td>
<td>
<input class="standard" id="passwordPrefix" onchange="preGeneratePassword();"
onkeyup="preGeneratePassword();" onkeydown="preGeneratePassword();"
onkeypress="preGeneratePassword();" oninput="preGeneratePassword();"/>
</td>
</tr>
<tr>
<td>Password Suffix</td>
<td>
<input class="standard" id="passwordSuffix" onchange="preGeneratePassword();"
onkeyup="preGeneratePassword();" onkeydown="preGeneratePassword();"
onkeypress="preGeneratePassword();" oninput="preGeneratePassword();"/>
</td>
</tr>
<tr>
<td>Generated Password</td>
<td>
<input class="standard" type="edit" id="passwdGenerated" style="color: #00f; background-color: #fff; font-weight: bold"/><br />
<input type="checkbox" id="ifHidePasswd" onchange="if(ifHidePasswd.checked==true){ passwdGenerated.style.color='#fff'; } else { passwdGenerated.style.color='#00f'; } saveGlobalPrefs();" />Make password invisible (Highlight to view)<br />
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<input type="button" value="Save Profile" onclick="saveProfile();" />
<input type="button" value="Cancel Changes" onclick="loadProfile();" />
<input type="button" value="Delete Profile" onclick="deleteProfile();" />
</td>
</tr>
</table>
</pwm-body>
</body>
</html>