colap Posted November 1, 2012 Share Posted November 1, 2012 Which mechanism should i use before saving password into mysql table? md5,sha1, or any crypting method. Please recommend/suggest something. Quote Link to comment https://forums.phpfreaks.com/topic/270149-how-to-store-password-into-mysql-table/ Share on other sites More sharing options...
White_Lily Posted November 1, 2012 Share Posted November 1, 2012 (edited) sha1 is better over md5. might be worth adding a salt to Edited November 1, 2012 by White_Lily Quote Link to comment https://forums.phpfreaks.com/topic/270149-how-to-store-password-into-mysql-table/#findComment-1389225 Share on other sites More sharing options...
Muddy_Funster Posted November 1, 2012 Share Posted November 1, 2012 crypt() using the blowfish algorithm seems to be the method of choice. see here (if you hav't already) http://php.net/manual/en/function.crypt.php for usage Quote Link to comment https://forums.phpfreaks.com/topic/270149-how-to-store-password-into-mysql-table/#findComment-1389227 Share on other sites More sharing options...
Christian F. Posted November 1, 2012 Share Posted November 1, 2012 I recommend this article about secure login systems, it'll tell you everything you need. At least enough to get you properly started. Quote Link to comment https://forums.phpfreaks.com/topic/270149-how-to-store-password-into-mysql-table/#findComment-1389434 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.