security - hash_pbkdf2 vs password_hash PHP functions -
as php 5.5.0 out now,
which 1 better use (security, portability, future proof)?
it says password_hash() password_default may change in each full release (+1.0 or +0.1) how can use default method hashed password new default? mean php 5.5 scripts hashed passwords in database not work on php 5.6 until users change passwords? cost change (i'm trying know if servers can updated php v5.6, or website admin may change hosting provider (and change cost weaker/stronger servers), without problem current users)
should wait updates or safe use in 5.5.0
should still use phpass etc frameworks or these new php 5.5 functions enough and/or more future proof?
the password hashing functions (such
password_hash
) preferred, automate more of process, such picking salt, verifying passwords, , rehashing.the
password_verify
function automatically detect algorithm used generate hash, there's no compatibility issue.these functions in released version of php, should fine use.
use phpass or shim such password_compat if code needs run on versions of php earlier 5.5. otherwise, use password hashing functions.
Comments
Post a Comment