miniBB ®®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Other miniBB Community Forum / Other /

Which way passwords are encrypted?

 
tobyy
Forums Member
#1 | Posted: 11 Oct 2006 07:49
Reply 
I need to import some users from an old forum to the user database.

I do know how to put the usernames, emails,... in the database but i need to know how to encrypt the passwords so these users can login!

right now i've got all the users without encryptet passwords, so is there a function i can use to write the passwords into the user table correctly?

i guess the funtion i'm looking for is somewhere inbb_func_regusr.php - but where??

thanx for your help, great forum!!
Paul
CEO
#2 | Posted: 11 Oct 2006 09:54
Reply 
miniBB stores all passwords one-way encoded by MD5 algorithm. This is defined in a function writeUserPwd() of bb_cookie.php file.

I guess, mySQL has a built-in function for MD5.
tobyy
Forums Member
#3 | Posted: 11 Oct 2006 11:16
Reply 
thanks, just found the function myself :)

i just needed to fill in the passwords via

$encrypted_password = md5($password);

works fine!

cheers
t
 
Your Reply
Bold Style  Italic Style  Image Link  URL Link 


» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 22
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®