encryption - Php, should i use sha1 or others version of sha? Whats are the differences? -


I am going to generate a random password for my users. Maybe I'll use salt and shaw method. But I came to know that there are other versions of sha1, like sha256, sha512 etc.

What is the difference between sha versions? Which is better, more secure and faster (performance)? Who should I use?

Edit:

I'm a php user, thanks :)

Password generation is not as straightforward as you think. For example, if you are generating a password for a site that can be accessed by a mobile phone (or any device with only one numeric keyboard), then you should ensure that your password is consistent with two The letters will not be placed on the same key. There is a huge UI fault.

An example: consider dfe4Pl7 as a password to type it, once used, to type symbol Received from, 3 Press, then press three times, wait again and '3' press twice. it's useless.

In more general terms, the password should be generated so that the wrong interpretation could possibly be avoided. For example, I personally type 1 and l s, 0 and o 's, etc.

Lower level: Hashing algorithm will be of little help here. What you need is a good random number generator and a UI-wise solid-generation algorithm.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -