Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php $rounds = 10000; $salt = '$6$rounds=' . $rounds . '$' . generateRandomString(16)..
Decoded Output download
<?php
$rounds = 10000;
$salt = '$6$rounds=' . $rounds . '$' . generateRandomString(16);
$password = 'Wfiv31@fv4';
$hashedPassword = crypt($password, $salt);
echo 'Hashed Password: ' . $hashedPassword;
function generateRandomString($length) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ./';
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, strlen($characters) - 1)];
}
return $randomString;
}
?>
Did this file decode correctly?
Original Code
<?php
$rounds = 10000;
$salt = '$6$rounds=' . $rounds . '$' . generateRandomString(16);
$password = 'Wfiv31@fv4';
$hashedPassword = crypt($password, $salt);
echo 'Hashed Password: ' . $hashedPassword;
function generateRandomString($length) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ./';
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, strlen($characters) - 1)];
}
return $randomString;
}
?>
Function Calls
generateRandomString | 1 |
Stats
MD5 | 4cfeda4a4bf261d83a36fd8bb1596b74 |
Eval Count | 0 |
Decode Time | 67 ms |