More

    What type of hash does WordPress use for passwords?

    If you look in to your WordPress database, you absolutely do not know what type of hash does WordPress use. You can find in users table passwords like this $P$BSs8sw1A8XAYtypu9qlldf0bviemIu1. As you see, this is not typical MD5 hash.

    We have a word: wordpress
    In MD5 hash: 1870a829d9bc69abf500eca6f00241fe
    In WordPress hash: $P$BXb4SCf11vB9pPFJFbkDLzDqVq89ra/

    The WordPress password hasher implements the Portable PHP password hashing framework. WordPress used MD5 in the older versions.

    You can generate hashes using WordPress encryption scheme at WordPress password hasher: http://scriptserver.mainframe8.com/wordpress_password_hasher.php.

    WordPress has the password encryption library located in /wp-includes/class-phpass.php. It is the Portable PHP Password hashing framework.

    How to hash password by WordPress hash?

    function wordpress_hash_password( $password ) {
     require_once( '/path/to/wp-includes/class-phpass.php' );
     $wp_hasher = new PasswordHash( 8, TRUE );
     $hashed_password = $wp_hasher->HashPassword( $password );
     return $hashed_password;
    }

    Recent Articles

    How to remove category & tag base from WordPress URL

    Would you like to remove the category & tag base from WordPress URL? Do you need custom URL's? It's a super simple!...

    How to Disable Right Click on WordPress

    Are you worried about having your images stolen from your WordPress website? Then you need to know how to disable right click on...

    How to redirect HTTP to HTTPs in .htaccess

    Today's standard is to have an https certificate. Google will love you if your sites are secured. So https is not standard,...

    How to fix TypeError: $ is not a function in WordPress

    We can guess. You purchased a theme or plugin and a console shown a message "TypeError: $ is not a function"? Ok,...

    How to fix Unknown collation: ‘utf8mb4_unicode_520_ci’

    Unknown collation is probably caused because your local and live server are running different versions of MySQL. This problem mostly comes when...

    Related Stories

    Leave A Reply

    Please enter your comment!
    Please enter your name here

    Stay on op - Get the daily news in your inbox