«« Next » « Previous
«« Next » « Previous

Link Details

You pick the winners! Login and vote now.
Link 93401 thumbnail

By clearnetwork
via total-php.com
Published: Jul 09 2008 / 21:04

When creating a membership based site security is paramount - especially if you're dealing with personal information. When it comes to passwords you'll want to encrypt them wherever they are stored so they can't be stolen. Here are a few things you can do to make your passwords as safe as possible.
  • 6
  • 7
  • 1199
  • 363

Comments

Add your comment
User 297562 avatar

Sven Arild Helleland replied ago:

0 votes Vote down Vote up Reply

SHA is not a encryption it is a hashing method! Thereof the name "Secure Hash Algorithm".

You should also read up about using salts when hashing passwords, failing to do so makes the hashes vulnerable for rainbow tables.

I also recommend that you take a look on the hash() functions instead of using sha1().
http://no.php.net/manual/en/function.hash.php

User 228173 avatar

mathewbyrne replied ago:

0 votes Vote down Vote up Reply

Salting? Hashing vs. Encryption?

This article describes the bare minimum that any security-conscious PHP developer should do to protect the credentials of their users. But surely at this point in 2008 we're all hashing and salting our stored passwords properly?

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.