2

I'm developing a new system and I wondered if my oldschool phpass is still the best option for hashing in php?

I'm looking for the best security, and I heard that blowfish is outdated. DES is old.

So what will you guys recommend for a new php system? I need something that is future-proof as replacing the algorithm after the release is a pain.

Thanks in advance.

2
  • Modern PHP uses the built-in password_hash()/password_verify() functions; when it doesn't even matter if the algorithm is changed by future versions of PHP Commented Aug 28, 2015 at 13:48
  • @MarkBaker beat me to it for the second time today. This has to stop :p Commented Aug 28, 2015 at 13:58

2 Answers 2

3

PHP 5.5 has a built in password_hash() and password_verify() function and it is very powerful.

The docs

How to on stackoverflow

Make sure your php version is 5.5 or above before you try to implement it.

Sign up to request clarification or add additional context in comments.

2 Comments

But note that you can use the userland implementation from PHP >= 5.3.7
Okay. tried that password_hash function and it seems to work great. now trying to verify it. Thank you!
-1

You can look at Mhash php extention, mhash() and SHA-512 as algorythm

1 Comment

From that manual page: "Note: This extension is obsoleted by Hash." That's not exactly modern.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.