Skip to content

Instantly share code, notes, and snippets.

@jlittlejohn
Created May 31, 2013 14:41
Show Gist options
  • Save jlittlejohn/5685447 to your computer and use it in GitHub Desktop.
Save jlittlejohn/5685447 to your computer and use it in GitHub Desktop.
PHP: Hashing API
<?php
$hash = password_hash($password, PASSWORD_BCRYPT, ['cost' => 20]);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment