• Marcin

    (@marcinkopec)


    Hi,
    i’m trying to use wp_hash_password method to hash string however, it hash the same string differently each time.
    What method do I have to use to generate the same password what wordpress does?

    i.e. this

    $password = 'mk';
    	echo $hash = wp_hash_password( $password );

    returns random hash each time its run.
    Regards,
    Marcin

Viewing 1 replies (of 1 total)
  • Thread Starter Marcin

    (@marcinkopec)

    I figured out in this way. Using phpAss

    <?php
    require('PasswordHash.php');
    $wp_hasher = new PasswordHash( 8, TRUE );
    $password = 'PassSQL';
    $hashed_password = $wp_hasher->HashPassword( $password );
    
    $password_form = 'PassForm';
    echo $check = $wp_hasher->CheckPassword($password_form, $hashed_password);
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Hashing Password’ is closed to new replies.