adding updated code
This commit is contained in:
15
sys0-code/waf/salt.php
Normal file
15
sys0-code/waf/salt.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
function getSalt() {
|
||||
$charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/\\][{}\!@#$*()_=+';
|
||||
$randString = "";
|
||||
$randStringLen = 128;
|
||||
|
||||
while(strlen($randString) < $randStringLen) {
|
||||
$randChar = substr(str_shuffle($charset), mt_rand(0, strlen($charset)), 1);
|
||||
$randString .= $randChar;
|
||||
}
|
||||
|
||||
return $randString;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user