Skip to content

Instantly share code, notes, and snippets.

@kidker
Created June 28, 2017 13:07
Show Gist options
  • Save kidker/2ea3b4322f940acb3ed54e653a8a12c4 to your computer and use it in GitHub Desktop.
Save kidker/2ea3b4322f940acb3ed54e653a8a12c4 to your computer and use it in GitHub Desktop.
Laravel bcrypt native php
$string = "some string that needs to be hashed";
$hash = password_hash($string, PASSWORD_BCRYPT, array('cost' => 10));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment