How do I update my security in my login script from MD5 to something more secure?


This question already has an answer here:


Short answer

Use bcrypt not md5 or sha1

Longer answer

Using the crypt() is hard. There is a new PHP password hashing API coming in PHP version 5.5, you can read about it here:

It uses bcrypt and makes the whole process very easy. Of course php 5.5 isn't ready yet, so in the meantime there is a library to provide this new API right now:

Edit: See this thread for a much more thorough answer on the topic:

How do you use bcrypt for hashing passwords in PHP?

Need Your Help

Convert a list of string floats to a list of floats with 2 decimal points

python list floating-point decimal

Did my research and made several improvements, got very close to solving this issue but now I'm stuck and need help please.

Does updating a dataset with the same value cause an underlying update?

c# dataset

Say I have a dataset, and I change a value in a datarow, but the value is identical to the old value:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.