MyBB Community Forums

Full Version: A small question.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,
I was developing a CMS for my site which would use myBB login details for authentification. However I came to the point where I need to know what function MyBB uses to encode passwords. I tried MD5 and abse64_encode but none worked. Does anybody know what function is used?


Thank you in advance.
Most authentication stuff can be found in inc/class_session.php and inc/functions_user.php

For password hashing, in inc/functions_user.php:
function salt_password($password, $salt)
{
	return md5(md5($salt).$password);
}
Thanks a lot Big Grin