agallian86
07-10-2007, 12:15 PM
I have a 17 response thread in the general forum that has moved beyond abstractions and I could use some actual coding help.
https://vborg.vbsupport.ru/showthread.php?t=151539
It can all be summarized by noting that I've migrated a forum (SMF) into vBulletin. Now, obviously vBulletin uses an MD5 hash and SMF uses SHA1 hashing. I'm attempting to workaround having users reset their passwords. The basic idea is:
Hmm what you COULD do:
- Check if the MD5 password matches
- If not encrypt the unencrypted password with SHA1, and check the password. If it is a match, re-hash the unencrypted password with MD5 and write to the database so the next attempt will match the normal MD5 hash vBulletin uses.
After some time most SHA1 hashed passwords should be gone.
I currently have my db storing all new accounts in plain-text, though this isn't desired for security purposes, I can now seemingly do the outline above. The only question is...how? I was assuming I need to create a type of vbulletin_sha1.js and modify some php file(s), could anyone point me on the correct path?
Thanks for the assistance guys!
https://vborg.vbsupport.ru/showthread.php?t=151539
It can all be summarized by noting that I've migrated a forum (SMF) into vBulletin. Now, obviously vBulletin uses an MD5 hash and SMF uses SHA1 hashing. I'm attempting to workaround having users reset their passwords. The basic idea is:
Hmm what you COULD do:
- Check if the MD5 password matches
- If not encrypt the unencrypted password with SHA1, and check the password. If it is a match, re-hash the unencrypted password with MD5 and write to the database so the next attempt will match the normal MD5 hash vBulletin uses.
After some time most SHA1 hashed passwords should be gone.
I currently have my db storing all new accounts in plain-text, though this isn't desired for security purposes, I can now seemingly do the outline above. The only question is...how? I was assuming I need to create a type of vbulletin_sha1.js and modify some php file(s), could anyone point me on the correct path?
Thanks for the assistance guys!