Quantcast
Channel: hashcat Forum - All Forums
Viewing all articles
Browse latest Browse all 7822

Help to recover password from an unknown hash type

$
0
0
Hi All,

Is this possible to crack if I only have the $encrypted_password / hash? How should I go about doing this. Any help or point me to the right direction is much appreciated.

Thanks.

Code:
// validate password function
function validatePassword(
    $username, /* username string */
    $cleartext_password, /* clear text password that's supplied by user */
    $encrypted_password /* encrypted password that's stored in the database */
    ) {

    // build a key based on supplied username and clear text password
    $key = trim($username).trim($cleartext_password);

    // decrypt the encrypted password based on the above key
    $decrypted_password = decrypt($encrypted_password, $key, 'twofish', 'cfb');

    // if both string matches, password is correct
    if ($decrypted_password == $cleartext_password) return true;

    // if both string does not match, password is wrong
    return false;
}

Best regards,
Azren[/php]

Viewing all articles
Browse latest Browse all 7822

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>