tags:

views:

1858

answers:

3

What type of hash does Wordpress use?
Here is an example of a Wordpress hash:

$P$Bp.ZDNMM98mGNxCtHSkc1DqdRPXeoR.

A: 

MD5 worked for me changing my database manually: http://codex.wordpress.org/Resetting_Your_Password

JohnMetta
no this isn't a plain md5 hash, plain md5 hashes look like this: b1946ac92492d2347c6235b4d2611184i've heard it's based on md5, but can someone please tell me what type of hash it uses and what option to seelect in passwordspro
MD5 will work if entered manually into the table, but upon first login WP will rewrite it using its own hash so it works great for resetting the password but not more than that.
GiladG
+2  A: 

$hash_type$salt$password

If the hash does not use a salt, then there is no $ sign for that. The actual hash in your case is after the 2nd $

The reason for this is so you can have many types of hashes with different salts and feed that string into a function that knows how to match it with some other value.

Ólafur Waage
thanksbut i thought md5 hashes had to be in hex, like this: b1946ac92492d2347c6235b4d2611184why does this hash have chars A-Z and . in it?is it a md5 hash?
Could be that type of hash that is used. A Hash is just a fixed size string. Could contain anything you want.
Ólafur Waage
+1  A: 

It depends at least on the version of PHP that is used. wp-includes/class-phpass.php contains all the answers.

innaM