Skip to content

Instantly share code, notes, and snippets.

@hardevine
Last active December 6, 2019 06:30
Show Gist options
  • Save hardevine/7bb27e932562e722e33167de690e09dc to your computer and use it in GitHub Desktop.
Save hardevine/7bb27e932562e722e33167de690e09dc to your computer and use it in GitHub Desktop.
bcrypt enc dec outside l
<?php
$value = 'passs';
$d = password_hash($value, PASSWORD_BCRYPT, [
'cost' => 10,
]);
echo $d;
$enc = "$2y$10$/5axuHxOPVuTmdJTrOe8w.9DsSd7ZSt0.uL6qREo/zyei8FAYb5fu";
$ver = password_verify($value, $enc);
//var_dump($ver);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment