Skip to content

Instantly share code, notes, and snippets.

@rdlmda
Created May 3, 2019 14:13
Show Gist options
  • Save rdlmda/267b548372c1673d49b1bf749363623e to your computer and use it in GitHub Desktop.
Save rdlmda/267b548372c1673d49b1bf749363623e to your computer and use it in GitHub Desktop.
Generate a bcrypt hashed password
php -r "echo password_hash('ThePassword', PASSWORD_BCRYPT, ['cost' => 13]) . PHP_EOL;"
# It will output something like: $2y$13$7mBTrD0lgdgBxt1.YbdvOOeSOrPUYOBfeC1Ra2osPs9lpCHdplw1m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment