WordPress 3 – how are passwords stored and how do I compare to them?

WordPress appears to have a built in function called wp_hash_password that will hash the given password and then you can compare it in the db.