Laravel – Hash of my password

To calculate the hash of a password perform the following steps:

  1. Open terminal
  2. Navigate to the Laravel installation (your project’s root directory)
  3. type:
php artisan tinker

Then …

For versions up to Laravel 4 type:

echo Hash::make('mypass');

From versions above Laravel 5 type:

echo bcrypt('mypass');
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s