Encryption VS Hash OR Mix?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
Z3RO21
Forum Contributor
Posts: 130
Joined: Thu Aug 17, 2006 8:59 am

Encryption VS Hash OR Mix?

Post by Z3RO21 »

Storing a password what is the best practice?

1. Encryption
2. Hashing
3. Hashing the Encryption (Or some other variation)

EDIT:
And what about the idea of dual salts, one salt from the database that is unique to each user, and one salt that is hard coded into the system?
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Post by Mordred »

Post Reply