All 4 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.
I use md5(), but what is better that md5
I believe you mean hashing instead of encrypting? There are other hashing algorithms such as SHA1 and SHA256 that would be considered stronger than MD5.
Depends on which php version you're using. If 5.5, have a look here:
Alternatively have a look at hash_hmac()
Available since version 5.1.2
As Jorge says - MD5 cannot be considered safe, even with a salt.
Yes using the crypt() function is probably the recommended course of action nowadays. It is supported in 5.3 I think which is what your servers should be on. It's pretty simple to use as well.