Skip to content

Instantly share code, notes, and snippets.

@bradsi
Created March 28, 2021 18:18
Show Gist options
  • Save bradsi/76d6a5953f57cb4c8d72f4bf8c3bddee to your computer and use it in GitHub Desktop.
Save bradsi/76d6a5953f57cb4c8d72f4bf8c3bddee to your computer and use it in GitHub Desktop.
<?php
$password = "test123";
// Password hashing
$hash = password_hash($password, PASSWORD_DEFAULT);
// Password de-hashing - returns boolean
$dehash = password_verify($password, $hash);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment