Skip to content

Instantly share code, notes, and snippets.

View ojtorres's full-sized avatar

ojtorres ojtorres

  • 20:24 (UTC -12:00)
View GitHub Profile
@jeremykendall
jeremykendall / password_hash_example.php
Last active January 19, 2022 07:50
Example of password hashing and verification with password_hash and password_verify. This script is intended to be run from the command line like so: 'php -f password_hash_example.php'
<?php
/**
* Example of password hashing and verification with password_hash and
* password_verify
*
* This script is intended to be run from the command line
* like so: 'php -f password_hash_example.php'
*
* @see http://stackoverflow.com/a/20809916/1134565