maak-je-wachtwoord-moeilijk
Gesponsorde koppelingen
PHP script bestanden
Code (php)
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
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
<?
// Snippet [1] |
function sOptimize($sPass)
{
// Optimize your password
$yPass = $sPass;
$cPass = 0; // Default
// Simple for loop, convert to BrEeZaAh first..
function sBrez ( $yPass )
{
$lengtetekst = strlen($yPass);
for($i = 0; $i < $lengtetekst; $i++) {
$j = rand(0,1);
$yPass{$i} = ($j == 0 ? strtolower($yPass{$i}) : strtoupper($yPass{$i}) ) ;
}
return $yPass;
}
$cPass = sBrez($yPass);
// $cPass is now the BreEZzAah $sPass ( original )
// Add some random numbers..
$sRandomNR = rand( 100, 1000 ) ; // Random Number
$sRandomN2 = rand( 100, 10000 ) ; // Same
$sRandomN3 = rand( 100, 1000000 ) ; // Random number between 0 and 1 million :P
$sFinalRandomNR = $sRandomNR ^ $sRandomN2 * $sRandomN3 ; // We generated some random nr
$sAydin = str_replace ( '-', '', $sFinalRandomNR ) ; // We don't want - in our pass..
$sMikos = substr($sAydin, 1, 3); // Shorten, you must remember it remember?"
$FinalPass = $cPass . $sMikos ; // Final pass
return $FinalPass;
}
?>
// Snippet [1] |
function sOptimize($sPass)
{
// Optimize your password
$yPass = $sPass;
$cPass = 0; // Default
// Simple for loop, convert to BrEeZaAh first..
function sBrez ( $yPass )
{
$lengtetekst = strlen($yPass);
for($i = 0; $i < $lengtetekst; $i++) {
$j = rand(0,1);
$yPass{$i} = ($j == 0 ? strtolower($yPass{$i}) : strtoupper($yPass{$i}) ) ;
}
return $yPass;
}
$cPass = sBrez($yPass);
// $cPass is now the BreEZzAah $sPass ( original )
// Add some random numbers..
$sRandomNR = rand( 100, 1000 ) ; // Random Number
$sRandomN2 = rand( 100, 10000 ) ; // Same
$sRandomN3 = rand( 100, 1000000 ) ; // Random number between 0 and 1 million :P
$sFinalRandomNR = $sRandomNR ^ $sRandomN2 * $sRandomN3 ; // We generated some random nr
$sAydin = str_replace ( '-', '', $sFinalRandomNR ) ; // We don't want - in our pass..
$sMikos = substr($sAydin, 1, 3); // Shorten, you must remember it remember?"
$FinalPass = $cPass . $sMikos ; // Final pass
return $FinalPass;
}
?>
// VOORBEELD.php