3raser Posted November 8, 2009 Share Posted November 8, 2009 How do I make it so when someone registers, it saves their password but in a way you can't see their password. Currently if you register on my site with the password: hey - It shows in the database: hey - I want it to be like this: hey = 558541 I've seen it before on like vBulletin scripts and phpBB3, how do you do it? Quote Link to comment https://forums.phpfreaks.com/topic/180790-saving-passwords/ Share on other sites More sharing options...
trq Posted November 8, 2009 Share Posted November 8, 2009 md5. Quote Link to comment https://forums.phpfreaks.com/topic/180790-saving-passwords/#findComment-953811 Share on other sites More sharing options...
3raser Posted November 8, 2009 Author Share Posted November 8, 2009 Where would I make it md5? Quote Link to comment https://forums.phpfreaks.com/topic/180790-saving-passwords/#findComment-953812 Share on other sites More sharing options...
daydreamer Posted November 8, 2009 Share Posted November 8, 2009 something like <?php $unencrypted="hey"; $encrypted=md5($unencrypted); // save this into your database ?> Then when they login, convert what they input to md5, and check against what you have saved in your DB. search google for "md5 PHP" Quote Link to comment https://forums.phpfreaks.com/topic/180790-saving-passwords/#findComment-953831 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.