Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-31T20:47:03-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2881 2011-03-31T20:47:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2881&p=8777#p8777 <![CDATA[Re: How is the password hashed?]]> ~ much appreciated!

Statistics: Posted by Jason Caldwell — March 31st, 2011, 8:47 pm


]]>
2011-03-31T12:45:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2881&p=8721#p8721 <![CDATA[Re: How is the password hashed?]]>
Code:
<?php

define( 'ABSPATH', dirname(__FILE__) . '/../web/' ); // directory of WordPress
require_once(ABSPATH.'wp-load.php');
require_once(ABSPATH.'wp-includes/wp-db.php');
require_once(ABSPATH.'wp-includes/cache.php');
require_once(ABSPATH.'wp-includes/formatting.php');
require_once(ABSPATH.'wp-includes/pluggable.php');
require_once(ABSPATH.'wp-includes/plugin.php');
require_once(ABSPATH.'wp-includes/user.php');

if (user_pass_ok("test", "test"))
{
   echo "good password";
}
else
{
   echo "bad password";
}

?>

Statistics: Posted by davei234 — March 31st, 2011, 12:45 pm


]]>
2011-03-31T04:35:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2881&p=8678#p8678 <![CDATA[Re: How is the password hashed?]]> Thanks for the excellent question.

You can use the "user_pass_ok()" function.
http://codex.wordpress.org/Function_Ref ... er_pass_ok

Statistics: Posted by Jason Caldwell — March 31st, 2011, 4:35 am


]]>
2011-03-31T01:37:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2881&p=8668#p8668 <![CDATA[Re: How is the password hashed?]]>
md5 of "test":
098f6bcd4621d373cade4e832627b4f6
^^ this is easy to test for -- just do md5("test")

wordpress/s2member hash of "test":
$P$BMr8jTPjHHOl0g/P6OtOeT/fZZr71y0
^^ how do I test this password?

thanks..

Statistics: Posted by davei234 — March 31st, 2011, 1:37 am


]]>
2011-03-29T22:00:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2881&p=8593#p8593 <![CDATA[How is the password hashed?]]>
I was wondering how to check the password stored in the `user_pass` field in the 'wp_users' database table. It doesn't appear to be a normal md5 hash. I want to be able to check the passwords so I could use the same users from s2member to login via software. Thanks.

Dave

Statistics: Posted by davei234 — March 29th, 2011, 10:00 pm


]]>