2272 |
tom.houday |
1 |
<?php
|
|
|
2 |
# $Id: password.php 3026 2022-06-30 21:53:54Z rexy $
|
|
|
3 |
#
|
2819 |
rexy |
4 |
# change user password on ALCASAR
|
|
|
5 |
# by ANGEL95 & REXY
|
2272 |
tom.houday |
6 |
|
|
|
7 |
/****************************************************************
|
|
|
8 |
* GLOBAL FILE PATHS *
|
|
|
9 |
*****************************************************************/
|
|
|
10 |
define('CONF_FILE', '/usr/local/etc/alcasar.conf');
|
|
|
11 |
|
|
|
12 |
/****************************************************************
|
|
|
13 |
* FILE reading test *
|
|
|
14 |
*****************************************************************/
|
|
|
15 |
$conf_files = array(CONF_FILE);
|
|
|
16 |
foreach ($conf_files as $file) {
|
|
|
17 |
if (!file_exists($file)) {
|
|
|
18 |
exit("Fichier $file non présent");
|
|
|
19 |
}
|
|
|
20 |
if (!is_readable($file)) {
|
|
|
21 |
exit("Vous n'avez pas les droits de lecture sur le fichier $file");
|
|
|
22 |
}
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
/****************************************************************
|
|
|
26 |
* Read CONF_FILE *
|
|
|
27 |
*****************************************************************/
|
|
|
28 |
$file_conf = fopen(CONF_FILE, 'r');
|
|
|
29 |
if (!$file_conf) {
|
|
|
30 |
exit('Error opening the file '.CONF_FILE);
|
|
|
31 |
}
|
|
|
32 |
while (!feof($file_conf)) {
|
|
|
33 |
$buffer = fgets($file_conf, 4096);
|
|
|
34 |
if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
|
2450 |
tom.houday |
35 |
$tmp = explode('=', $buffer, 2);
|
|
|
36 |
$conf[trim($tmp[0])] = trim($tmp[1]);
|
2272 |
tom.houday |
37 |
}
|
|
|
38 |
}
|
|
|
39 |
fclose($file_conf);
|
|
|
40 |
|
2822 |
rexy |
41 |
if ($conf['HTTPS_LOGIN'] === 'on') {
|
2272 |
tom.houday |
42 |
// Redirect to HTTPS
|
|
|
43 |
if ((!isset($_SERVER['HTTPS'])) || (empty($_SERVER['HTTPS'])) || ($_SERVER['HTTPS'] === 'off')) {
|
|
|
44 |
header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
|
2822 |
rexy |
45 |
exit(); }
|
2272 |
tom.houday |
46 |
}
|
|
|
47 |
|
|
|
48 |
require('/etc/freeradius-web/config.php');
|
|
|
49 |
|
3026 |
rexy |
50 |
$page = "password";
|
2272 |
tom.houday |
51 |
$current_page = htmlspecialchars($_SERVER['PHP_SELF']);
|
|
|
52 |
$homepage = (((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')) ? 'https' : 'http').'://'.$conf['HOSTNAME'].'.'.$conf['DOMAIN'];
|
|
|
53 |
|
|
|
54 |
// Choice of language
|
|
|
55 |
$Language = 'en';
|
|
|
56 |
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
|
|
57 |
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
|
|
58 |
$Language = strtolower(substr(chop($Langue[0]), 0, 2));
|
|
|
59 |
}
|
|
|
60 |
if ($Language === 'es') { // Spanish
|
2850 |
rexy |
61 |
$l_title = "Gestione su contraseña";
|
|
|
62 |
$l_form_l1 = "Usuario";
|
|
|
63 |
$l_form_l2 = "Contraseña anterior";
|
|
|
64 |
$l_form_l3 = "Nueva contraseña";
|
|
|
65 |
$l_form_l4 = "Nueva contraseña (verificación)";
|
|
|
66 |
$l_eval_pass = "Evaluación :";
|
2272 |
tom.houday |
67 |
$l_passwordmeter = "Powered by 'Shibbo Password Analyser'";
|
2850 |
rexy |
68 |
$l_form_button_valid = "Modificar";
|
|
|
69 |
$l_form_button_retour = "Cancelar";
|
|
|
70 |
$l_form_result1 = "Su contraseña ha sido actualizada exitosamente";
|
|
|
71 |
$l_form_result2 = "Error al intentar cambiar la contraseña";
|
2272 |
tom.houday |
72 |
} else if ($Language === 'pt') { // Portuguese
|
|
|
73 |
$l_title = "Alteração de senha do usuário";
|
|
|
74 |
$l_form_l1 = "Usuário";
|
|
|
75 |
$l_form_l2 = "Senha antiga";
|
|
|
76 |
$l_form_l3 = "Nova senha";
|
|
|
77 |
$l_form_l4 = "Nova senha (confirmação)";
|
|
|
78 |
$l_eval_pass = "Resultado:";
|
|
|
79 |
$l_passwordmeter = "Powered by 'Shibbo Password Analyser'";
|
|
|
80 |
$l_form_button_valid = "Modificar";
|
|
|
81 |
$l_form_button_retour = "Cancelar";
|
|
|
82 |
$l_form_result1 = "Sua senha foi alterada com sucesso";
|
|
|
83 |
$l_form_result2 = "Erro ao tentar alterar a senha";
|
|
|
84 |
} else if ($Language === 'de') { // German
|
2766 |
rexy |
85 |
$l_title = "Password ändern";
|
|
|
86 |
$l_form_l1 = "Benutzername";
|
|
|
87 |
$l_form_l2 = "Altes Passwort";
|
|
|
88 |
$l_form_l3 = "Neues Passwort";
|
|
|
89 |
$l_form_l4 = "Neues Passwort bestätigen";
|
|
|
90 |
$l_eval_pass = "Wert :";
|
2272 |
tom.houday |
91 |
$l_passwordmeter = "Powered by 'Shibbo Password Analyser'";
|
2766 |
rexy |
92 |
$l_form_button_valid = "Bestätigen";
|
|
|
93 |
$l_form_button_retour = "Abbrechen";
|
|
|
94 |
$l_form_result1 = "Ihr Passwort wurde erfolgreich geändert.";
|
|
|
95 |
$l_form_result2 = "Fehler beim Ändern des Passworts";
|
2272 |
tom.houday |
96 |
} else if ($Language === 'nl') { // Dutch
|
|
|
97 |
$l_title = "User password change";
|
|
|
98 |
$l_form_l1 = "User";
|
|
|
99 |
$l_form_l2 = "Old password";
|
|
|
100 |
$l_form_l3 = "New password";
|
|
|
101 |
$l_form_l4 = "New password (confirmation)";
|
|
|
102 |
$l_eval_pass = "Score :";
|
|
|
103 |
$l_passwordmeter = "Powered by 'Shibbo Password Analyser'";
|
|
|
104 |
$l_form_button_valid = "Modify";
|
|
|
105 |
$l_form_button_retour = "Cancel";
|
|
|
106 |
$l_form_result1 = "Your password has been successfuly changed";
|
|
|
107 |
$l_form_result2 = "Error when trying to change password";
|
|
|
108 |
} else if ($Language === 'zh') { // Chinese
|
|
|
109 |
$l_title = "修改用户密码";
|
|
|
110 |
$l_form_l1 = "用户";
|
|
|
111 |
$l_form_l2 = "旧密码";
|
|
|
112 |
$l_form_l3 = "新密码";
|
|
|
113 |
$l_form_l4 = "新密码(确认)";
|
2850 |
rexy |
114 |
$l_eval_pass = "得分";
|
2272 |
tom.houday |
115 |
$l_passwordmeter = "技术支持 'Shibbo Password Analyser'";
|
|
|
116 |
$l_form_button_valid = "修改";
|
|
|
117 |
$l_form_button_retour = "取消";
|
|
|
118 |
$l_form_result1 = "您的密码已成功修改";
|
|
|
119 |
$l_form_result2 = "修改密码出错";
|
|
|
120 |
} else if ($Language === 'ar') { // Arabic
|
|
|
121 |
$l_title = "تغيير كلمة المرور للمستخدم";
|
|
|
122 |
$l_form_l1 = "المستعمل";
|
|
|
123 |
$l_form_l2 = "كلمه السر القديمة";
|
|
|
124 |
$l_form_l3 = "كلمة السر الجديدة";
|
|
|
125 |
$l_form_l4 = "كلمة السر الجديدة (أكد)";
|
2850 |
rexy |
126 |
$l_eval_pass = ": أحرز هدفا";
|
2272 |
tom.houday |
127 |
$l_passwordmeter = "مشغل بواسطة 'Shibbo Password Analyser'";
|
|
|
128 |
$l_form_button_valid = "تغيير";
|
|
|
129 |
$l_form_button_retour = "إلغاء";
|
|
|
130 |
$l_form_result1 = "تم تغيير الرقم السري بنجاح";
|
|
|
131 |
$l_form_result2 = "خطأ عند محاولة تغيير كلمة المرور";
|
|
|
132 |
} else if ($Language === 'fr') { // French
|
2819 |
rexy |
133 |
$l_title = "Changement de mot de passe";
|
2272 |
tom.houday |
134 |
$l_form_l1 = "Utilisateur :";
|
|
|
135 |
$l_form_l2 = "Ancien mot de passe :";
|
|
|
136 |
$l_form_l3 = "Nouveau mot de passe :";
|
|
|
137 |
$l_form_l4 = "Nouveau mot de passe (confirmation) :";
|
|
|
138 |
$l_eval_pass = "Score :";
|
|
|
139 |
$l_passwordmeter = "Propulsé par 'Shibbo Password Analyser'";
|
|
|
140 |
$l_form_button_valid = "Modifier";
|
|
|
141 |
$l_form_button_retour = "Annuler";
|
|
|
142 |
$l_form_result1 = "Votre mot de passe a été modifié avec succès";
|
|
|
143 |
$l_form_result2 = "Erreur de changement de mot de passe";
|
|
|
144 |
} else { // English
|
|
|
145 |
$l_title = "User password change";
|
|
|
146 |
$l_form_l1 = "User";
|
|
|
147 |
$l_form_l2 = "Old password";
|
|
|
148 |
$l_form_l3 = "New password";
|
|
|
149 |
$l_form_l4 = "New password (confirmation)";
|
|
|
150 |
$l_eval_pass = "Score:";
|
|
|
151 |
$l_passwordmeter = "Powered by 'Shibbo Password Analyser'";
|
|
|
152 |
$l_form_button_valid = "Modify";
|
|
|
153 |
$l_form_button_retour = "Cancel";
|
|
|
154 |
$l_form_result1 = "Your password has been successfuly changed";
|
|
|
155 |
$l_form_result2 = "Error when trying to change password";
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
if (isset($action)) {
|
|
|
159 |
if ($action === 'checkpass') {
|
|
|
160 |
if (!is_file("acc/manager/lib/sql/drivers/$config[sql_type]/functions.php")) {
|
|
|
161 |
exit('<b>Could not include SQL library</b>');
|
|
|
162 |
}
|
|
|
163 |
require_once("acc/manager/lib/sql/drivers/$config[sql_type]/functions.php");
|
|
|
164 |
$link = @da_sql_pconnect($config);
|
|
|
165 |
if ($link) {
|
|
|
166 |
$sql = "SELECT attribute,value FROM $config[sql_check_table] WHERE username = '$login' AND attribute = '$config[sql_password_attribute]';";
|
|
|
167 |
$res = @da_sql_query($link,$config, $sql);
|
|
|
168 |
if ($res) {
|
|
|
169 |
$row = @da_sql_fetch_array($res, $config);
|
|
|
170 |
if (!is_file("acc/manager/lib/crypt/$config[general_encryption_method].php")) {
|
|
|
171 |
exit('<b>Could not open encryption library file</b>');
|
|
|
172 |
}
|
|
|
173 |
include("acc/manager/lib/crypt/$config[general_encryption_method].php");
|
|
|
174 |
$enc_passwd = $row['value'];
|
|
|
175 |
$passwd = da_encrypt($passwd,$enc_passwd);
|
|
|
176 |
$newpasswd = da_encrypt($newpasswd,$enc_passwd);
|
|
|
177 |
$newpasswd2 = da_encrypt($newpasswd2,$enc_passwd);
|
|
|
178 |
if (($passwd === $enc_passwd) && ($newpasswd === $newpasswd2)) {
|
|
|
179 |
$sql = "UPDATE $config[sql_check_table] SET value='$newpasswd' WHERE username = '$login' AND attribute = '$config[sql_password_attribute]';";
|
|
|
180 |
$res2 = @da_sql_query($link, $config, $sql);
|
|
|
181 |
$changePasswordMessage = '<font color=blue><b>'.$l_form_result1.'</b></font>';
|
|
|
182 |
} else {
|
|
|
183 |
$changePasswordMessage = '<font color=red><b>'.$l_form_result2.'</b></font>';
|
|
|
184 |
}
|
|
|
185 |
}
|
|
|
186 |
}
|
|
|
187 |
}
|
|
|
188 |
}
|
|
|
189 |
|
|
|
190 |
// Cleaning the cache
|
|
|
191 |
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
|
|
|
192 |
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
|
|
193 |
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
|
|
194 |
header('Cache-Control: post-check=0, pre-check=0', false);
|
|
|
195 |
header('Pragma: no-cache');
|
|
|
196 |
?>
|
|
|
197 |
<!DOCTYPE html>
|
|
|
198 |
<html>
|
2819 |
rexy |
199 |
<head>
|
|
|
200 |
<meta charset="UTF-8">
|
|
|
201 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
202 |
<title>ALCASAR - <?= $l_title ?></title>
|
|
|
203 |
<link rel="stylesheet" type="text/css" href="/css/pwdmeter.css">
|
|
|
204 |
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
|
|
|
205 |
<link rel="stylesheet" type="text/css" href="/css/pass.css">
|
2823 |
rexy |
206 |
<link rel="icon" href="/images/favicon-48.ico" type="image/ico">
|
|
|
207 |
|
2819 |
rexy |
208 |
<script src="/js/pwdmeter.js"></script>
|
|
|
209 |
</head>
|
|
|
210 |
<body>
|
3026 |
rexy |
211 |
<div class="col-12 col-lg-10 offset-lg-1">
|
2766 |
rexy |
212 |
|
3026 |
rexy |
213 |
<?php require_once(__DIR__.'/header.php'); ?>
|
|
|
214 |
|
2819 |
rexy |
215 |
<!-- Main content box -->
|
|
|
216 |
<div class="row">
|
3026 |
rexy |
217 |
<form name="master" id="contenu_acces" action="<?= $current_page ?>" method="post" class="col-12 offset-lg-1 col-lg-10">
|
2819 |
rexy |
218 |
<input class="row" type="hidden" name="action" value="checkpass">
|
2766 |
rexy |
219 |
|
2819 |
rexy |
220 |
<div class="row input_row">
|
3026 |
rexy |
221 |
<div class="label_name col-3 col-lg-4"><?= $l_form_l1 ?></div>
|
|
|
222 |
<div class="col-6 col-lg-4">
|
2819 |
rexy |
223 |
<input type="text" name="login" class="form-control" id="input_value" value="" label="test">
|
2766 |
rexy |
224 |
</div>
|
2819 |
rexy |
225 |
</div>
|
2766 |
rexy |
226 |
|
2819 |
rexy |
227 |
<div class="row input_row">
|
3026 |
rexy |
228 |
<div class="label_name col-3 col-lg-4"><?= $l_form_l2 ?></div>
|
|
|
229 |
<div class="col-6 col-lg-4">
|
2819 |
rexy |
230 |
<input type="password" class="form-control" id="input_value" name="passwd" value="">
|
2766 |
rexy |
231 |
</div>
|
2819 |
rexy |
232 |
</div>
|
2766 |
rexy |
233 |
|
2819 |
rexy |
234 |
<div class="row input_row">
|
3026 |
rexy |
235 |
<div class="label_name col-3 col-lg-4"><?= $l_form_l3 ?></div>
|
|
|
236 |
<div class="col-6 col-lg-4">
|
2819 |
rexy |
237 |
<input class="form-control" id="input_value" type="password" name="newpasswd" value="" autocomplete="off" onkeyup="chkPass(this.value);" />
|
2766 |
rexy |
238 |
</div>
|
3026 |
rexy |
239 |
<div class="col-3 col-lg-4">
|
2819 |
rexy |
240 |
<input type="text" id="passwordTxt" name="passwordTxt" autocomplete="off" onkeyup="chkPass(this.value);" class="hide" />
|
2766 |
rexy |
241 |
</div>
|
2819 |
rexy |
242 |
</div>
|
2766 |
rexy |
243 |
|
2819 |
rexy |
244 |
<div class="row input_row">
|
|
|
245 |
|
3026 |
rexy |
246 |
<div class="label_name col-3 col-lg-4"><?= $l_eval_pass ?></div>
|
|
|
247 |
<div class="col-6 col-lg-4">
|
|
|
248 |
<div class="progress bg-secondary">
|
|
|
249 |
<div id ="pwprogress" class="progress-bar" role="progressbar" style="width: 0%;">0%</div>
|
2766 |
rexy |
250 |
</div>
|
2819 |
rexy |
251 |
<div class="row">
|
3026 |
rexy |
252 |
<div id="lien_pass" class="col-12"><?= $l_passwordmeter ?></div>
|
2766 |
rexy |
253 |
</div>
|
|
|
254 |
</div>
|
|
|
255 |
</div>
|
2819 |
rexy |
256 |
|
|
|
257 |
<div class="row input_row">
|
3026 |
rexy |
258 |
<div class="label_name col-3 col-lg-4"><?= $l_form_l4 ?></div>
|
|
|
259 |
<div class="col-6 col-lg-4">
|
2819 |
rexy |
260 |
<input type="password" class="form-control" id="input_value" name="newpasswd2" value="">
|
2766 |
rexy |
261 |
</div>
|
|
|
262 |
</div>
|
2819 |
rexy |
263 |
|
|
|
264 |
<div class="row input_row">
|
3026 |
rexy |
265 |
<div class="col-5 offset-sm-1 col-md-4 offset-md-2">
|
2819 |
rexy |
266 |
<input id="buttons" class="btn btn-default" value="<?= $l_form_button_retour ?>" onclick="window.location.href = '<?= $homepage ?>';">
|
|
|
267 |
</div>
|
3026 |
rexy |
268 |
<div class="col-5 col-md-4">
|
2819 |
rexy |
269 |
<button type="submit" class="btn btn-primary" id="buttons"><?= $l_form_button_valid ?></button>
|
|
|
270 |
</div>
|
|
|
271 |
</div>
|
|
|
272 |
</form>
|
2766 |
rexy |
273 |
</div>
|
2819 |
rexy |
274 |
<!--
|
|
|
275 |
<div class="row">
|
|
|
276 |
<div id="boite_logo" class="img_banner col-xs-12 hidden-sm hidden-md hidden-lg">
|
3026 |
rexy |
277 |
<img class="img-fluid image" src="images/organisme.png">
|
2819 |
rexy |
278 |
</div>
|
|
|
279 |
</div> -->
|
2272 |
tom.houday |
280 |
</div>
|
2819 |
rexy |
281 |
<div id="info_pass">
|
|
|
282 |
<table id="tablePwdStatus" cellpadding="5" cellspacing="1" border="0">
|
|
|
283 |
<tr>
|
|
|
284 |
<th colspan="2">Additions</th>
|
|
|
285 |
<th class="txtCenter">Type</th>
|
|
|
286 |
<th class="txtCenter">Rate</th>
|
|
|
287 |
<th class="txtCenter">Count</th>
|
|
|
288 |
<th class="txtCenter">Bonus</th>
|
|
|
289 |
</tr>
|
|
|
290 |
<tr>
|
|
|
291 |
<td width="1%"><div id="div_nLength" class="fail"> </div></td>
|
|
|
292 |
<td width="94%">Number of Characters</td>
|
|
|
293 |
<td width="1%" class="txtCenter">Flat</td>
|
|
|
294 |
<td width="1%" class="txtCenter italic">+(n*4)</td>
|
|
|
295 |
<td width="1%"><div id="nLength" class="box"> </div></td>
|
|
|
296 |
<td width="1%"><div id="nLengthBonus" class="boxPlus"> </div></td>
|
|
|
297 |
</tr>
|
|
|
298 |
<tr>
|
|
|
299 |
<td><div id="div_nAlphaUC" class="fail"> </div></td>
|
|
|
300 |
<td>Uppercase Letters</td>
|
|
|
301 |
<td class="txtCenter">Cond/Incr</td>
|
|
|
302 |
<td nowrap="nowrap" class="txtCenter italic">+((len-n)*2)</td>
|
|
|
303 |
<td><div id="nAlphaUC" class="box"> </div></td>
|
|
|
304 |
<td><div id="nAlphaUCBonus" class="boxPlus"> </div></td>
|
|
|
305 |
</tr>
|
|
|
306 |
<tr>
|
|
|
307 |
<td><div id="div_nAlphaLC" class="fail"> </div></td>
|
|
|
308 |
<td>Lowercase Letters</td>
|
|
|
309 |
<td class="txtCenter">Cond/Incr</td>
|
|
|
310 |
<td class="txtCenter italic">+((len-n)*2)</td>
|
|
|
311 |
<td><div id="nAlphaLC" class="box"> </div></td>
|
|
|
312 |
<td><div id="nAlphaLCBonus" class="boxPlus"> </div></td>
|
|
|
313 |
</tr>
|
|
|
314 |
<tr>
|
|
|
315 |
<td><div id="div_nNumber" class="fail"> </div></td>
|
|
|
316 |
<td>Numbers</td>
|
|
|
317 |
<td class="txtCenter">Cond</td>
|
|
|
318 |
<td class="txtCenter italic">+(n*4)</td>
|
|
|
319 |
<td><div id="nNumber" class="box"> </div></td>
|
|
|
320 |
<td><div id="nNumberBonus" class="boxPlus"> </div></td>
|
|
|
321 |
</tr>
|
|
|
322 |
<tr>
|
|
|
323 |
<td><div id="div_nSymbol" class="fail"> </div></td>
|
|
|
324 |
<td>Symbols</td>
|
|
|
325 |
<td class="txtCenter">Flat</td>
|
|
|
326 |
<td class="txtCenter italic">+(n*6)</td>
|
|
|
327 |
<td><div id="nSymbol" class="box"> </div></td>
|
|
|
328 |
<td><div id="nSymbolBonus" class="boxPlus"> </div></td>
|
|
|
329 |
</tr>
|
|
|
330 |
<tr>
|
|
|
331 |
<td><div id="div_nMidChar" class="fail"> </div></td>
|
|
|
332 |
<td>Middle Numbers or Symbols</td>
|
|
|
333 |
<td class="txtCenter">Flat</td>
|
|
|
334 |
<td class="txtCenter italic">+(n*2)</td>
|
|
|
335 |
<td><div id="nMidChar" class="box"> </div></td>
|
|
|
336 |
<td><div id="nMidCharBonus" class="boxPlus"> </div></td>
|
|
|
337 |
</tr>
|
|
|
338 |
<tr>
|
|
|
339 |
<td><div id="div_nRequirements" class="fail"> </div></td>
|
|
|
340 |
<td>Requirements</td>
|
|
|
341 |
<td class="txtCenter">Flat</td>
|
|
|
342 |
<td class="txtCenter italic">+(n*2)</td>
|
|
|
343 |
<td><div id="nRequirements" class="box"> </div></td>
|
|
|
344 |
<td><div id="nRequirementsBonus" class="boxPlus"> </div></td>
|
|
|
345 |
</tr>
|
|
|
346 |
<tr>
|
|
|
347 |
<th colspan="6">Deductions</th>
|
|
|
348 |
</tr>
|
|
|
349 |
<tr>
|
|
|
350 |
<td width="1%"><div id="div_nAlphasOnly" class="pass"> </div></td>
|
|
|
351 |
<td width="94%">Letters Only</td>
|
|
|
352 |
<td width="1%" class="txtCenter">Flat</td>
|
|
|
353 |
<td width="1%" class="txtCenter italic">-n</td>
|
|
|
354 |
<td width="1%"><div id="nAlphasOnly" class="box"> </div></td>
|
|
|
355 |
<td width="1%"><div id="nAlphasOnlyBonus" class="boxMinus"> </div></td>
|
|
|
356 |
</tr>
|
|
|
357 |
<tr>
|
|
|
358 |
<td><div id="div_nNumbersOnly" class="pass"> </div></td>
|
|
|
359 |
<td>Numbers Only</td>
|
|
|
360 |
<td class="txtCenter">Flat</td>
|
|
|
361 |
<td class="txtCenter italic">-n</td>
|
|
|
362 |
<td><div id="nNumbersOnly" class="box"> </div></td>
|
|
|
363 |
<td><div id="nNumbersOnlyBonus" class="boxMinus"> </div></td>
|
|
|
364 |
</tr>
|
|
|
365 |
<tr>
|
|
|
366 |
<td><div id="div_nRepChar" class="pass"> </div></td>
|
|
|
367 |
<td>Repeat Characters (Case Insensitive)</td>
|
|
|
368 |
<td class="txtCenter">Comp</td>
|
|
|
369 |
<td nowrap="nowrap" class="txtCenter italic"> - </td>
|
|
|
370 |
<td><div id="nRepChar" class="box"> </div></td>
|
|
|
371 |
<td><div id="nRepCharBonus" class="boxMinus"> </div></td>
|
|
|
372 |
</tr>
|
|
|
373 |
<tr>
|
|
|
374 |
<td><div id="div_nConsecAlphaUC" class="pass"> </div></td>
|
|
|
375 |
<td>Consecutive Uppercase Letters</td>
|
|
|
376 |
<td class="txtCenter">Flat</td>
|
|
|
377 |
<td class="txtCenter italic">-(n*2)</td>
|
|
|
378 |
<td><div id="nConsecAlphaUC" class="box"> </div></td>
|
|
|
379 |
<td><div id="nConsecAlphaUCBonus" class="boxMinus"> </div></td>
|
|
|
380 |
</tr>
|
|
|
381 |
<tr>
|
|
|
382 |
<td><div id="div_nConsecAlphaLC" class="pass"> </div></td>
|
|
|
383 |
<td>Consecutive Lowercase Letters</td>
|
|
|
384 |
<td class="txtCenter">Flat</td>
|
|
|
385 |
<td class="txtCenter italic">-(n*2)</td>
|
|
|
386 |
<td><div id="nConsecAlphaLC" class="box"> </div></td>
|
|
|
387 |
<td><div id="nConsecAlphaLCBonus" class="boxMinus"> </div></td>
|
|
|
388 |
</tr>
|
|
|
389 |
<tr>
|
|
|
390 |
<td><div id="div_nConsecNumber" class="pass"> </div></td>
|
|
|
391 |
<td>Consecutive Numbers</td>
|
|
|
392 |
<td class="txtCenter">Flat</td>
|
|
|
393 |
<td class="txtCenter italic">-(n*2)</td>
|
|
|
394 |
<td><div id="nConsecNumber" class="box"> </div></td>
|
|
|
395 |
<td><div id="nConsecNumberBonus" class="boxMinus"> </div></td>
|
|
|
396 |
</tr>
|
|
|
397 |
<tr>
|
|
|
398 |
<td><div id="div_nSeqAlpha" class="pass"> </div></td>
|
|
|
399 |
<td>Sequential Letters (3+)</td>
|
|
|
400 |
<td class="txtCenter">Flat</td>
|
|
|
401 |
<td class="txtCenter italic">-(n*3)</td>
|
|
|
402 |
<td><div id="nSeqAlpha" class="box"> </div></td>
|
|
|
403 |
<td><div id="nSeqAlphaBonus" class="boxMinus"> </div></td>
|
|
|
404 |
</tr>
|
|
|
405 |
<tr>
|
|
|
406 |
<td><div id="div_nSeqNumber" class="pass"> </div></td>
|
|
|
407 |
<td>Sequential Numbers (3+)</td>
|
|
|
408 |
<td class="txtCenter">Flat</td>
|
|
|
409 |
<td class="txtCenter italic">-(n*3)</td>
|
|
|
410 |
<td><div id="nSeqNumber" class="box"> </div></td>
|
|
|
411 |
<td><div id="nSeqNumberBonus" class="boxMinus"> </div></td>
|
|
|
412 |
</tr>
|
|
|
413 |
<tr>
|
|
|
414 |
<td><div id="div_nSeqSymbol" class="pass"> </div></td>
|
|
|
415 |
<td>Sequential Symbols (3+)</td>
|
|
|
416 |
<td class="txtCenter">Flat</td>
|
|
|
417 |
<td class="txtCenter italic">-(n*3)</td>
|
|
|
418 |
<td><div id="nSeqSymbol" class="box"> </div></td>
|
|
|
419 |
<td><div id="nSeqSymbolBonus" class="boxMinus"> </div></td>
|
|
|
420 |
</tr>
|
|
|
421 |
<tr>
|
|
|
422 |
<th colspan="6">Legend</th>
|
|
|
423 |
</tr>
|
|
|
424 |
<tr>
|
|
|
425 |
<td colspan="6">
|
|
|
426 |
<ul id="listLegend">
|
|
|
427 |
<li><div class="exceed imgLegend"> </div><span class="bold">Exceptional:</span> Exceeds minimum standards. Additional bonuses are applied.</li>
|
|
|
428 |
<li><div class="pass imgLegend"> </div><span class="bold">Sufficient:</span> Meets minimum standards. Additional bonuses are applied.</li>
|
|
|
429 |
<li><div class="warn imgLegend"> </div><span class="bold">Warning:</span> Advisory against employing bad practices. Overall score is reduced.</li>
|
|
|
430 |
<li><div class="fail imgLegend"> </div><span class="bold">Failure:</span> Does not meet the minimum standards. Overall score is reduced.</li>
|
|
|
431 |
</ul>
|
|
|
432 |
</td>
|
|
|
433 |
</tr>
|
|
|
434 |
</table>
|
|
|
435 |
<table id="tablePwdNotes" cellpadding="5" cellspacing="1" border="0">
|
|
|
436 |
<tr>
|
|
|
437 |
<th>Quick Footnotes</th>
|
|
|
438 |
</tr>
|
|
|
439 |
<tr>
|
|
|
440 |
<td>
|
|
|
441 |
• <strong>Flat:</strong> Rates that add/remove in non-changing increments.<br>
|
|
|
442 |
• <strong>Incr:</strong> Rates that add/remove in adjusting increments.<br>
|
|
|
443 |
• <strong>Cond:</strong> Rates that add/remove depending on additional factors.<br>
|
|
|
444 |
• <strong>Comp:</strong> Rates that are too complex to summarize. See source code for details.<br>
|
|
|
445 |
• <strong>n:</strong> Refers to the total number of occurrences.<br>
|
|
|
446 |
• <strong>len:</strong> Refers to the total password length.<br>
|
|
|
447 |
• Additional bonus scores are given for increased character variety.<br>
|
|
|
448 |
• Final score is a cumulative result of all bonuses minus deductions.<br>
|
|
|
449 |
• Final score is capped with a minimum of 0 and a maximum of 100.<br>
|
|
|
450 |
• Score and Complexity ratings are not conditional on meeting minimum requirements.<br>
|
|
|
451 |
</td>
|
|
|
452 |
</tr>
|
|
|
453 |
</table>
|
|
|
454 |
</div>
|
2766 |
rexy |
455 |
</div>
|
2819 |
rexy |
456 |
</body>
|
2272 |
tom.houday |
457 |
</html>
|