Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Jun. 23rd 2014

PHP's Password Hashing API

Run Time 6:07

Download

Among other things, PHP 5.5 included a new API for easily hashing passwords. A single line of code will give you a secure, encrypted, salted hash, that you may then insert into your database. Let's review this API, as well as how Laravel makes use of it - even for those who are still on 5.4.