06.10.2016 Views

laravel-5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Hashing<br />

• Introduction<br />

• Basic Usage<br />

Introduction<br />

The Laravel Hash facade provides secure Bcrypt hashing for storing user passwords. If you are using<br />

the AuthController controller that is included with your Laravel application, it will automatically<br />

use Bcrypt for registration and authentication.<br />

Bcrypt is a great choice for hashing passwords because its “work factor” is adjustable, which means<br />

that the time it takes to generate a hash can be increased as hardware power increases.<br />

Basic Usage<br />

You may hash a password by calling the make method on the Hash facade:<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!