Possible Duplicate:
hash() vs. crypt() function comparison
Recently I researched how to properly do password hashing in PHP. One of the better options is to use crypt()
. But why wouldn't we use hash()
?
The main reason I am asking this is because I made a password hashing function that wraps crypt()
and I am wondering what to name my function. Right now it's named getHash()
. But I feel funny using that name since I am wrapping crypt()
. If I use getCrypt()
that doesn't sound great either because it's meant to be a HASHING function. What should I name my hashing function that wraps crypt()
?