In the databases sourse: “shal(‘password’)” is strongest way protect your password.

Sandy | Full stack Web developer

Regardless of whether you store your data in a database or a file, storing the passwords as
plain text is an unnecessary risk.A one-way hashing algorithm can provide better security
with very little extra effort.
PHP provides a number of one-way hash functions.The oldest and least secure is the
Unix Crypt algorithm, provided by the function crypt().The Message Digest 5 (MD5)
algorithm, implemented in the function md5(), is stronger.

Stronger yet is the Secure Hash Algorithm 1 (SHA-1.) The PHP function sha1()
provides a strong, one-way cryptographic hash function.

View original post


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s