Skip to content

Instantly share code, notes, and snippets.

@YurePereira
Created January 28, 2018 06:15
Show Gist options
  • Save YurePereira/5d42672c14e395ce2b05a97aebbb9dc9 to your computer and use it in GitHub Desktop.
Save YurePereira/5d42672c14e395ce2b05a97aebbb9dc9 to your computer and use it in GitHub Desktop.
Criando um salt personalizado ao usarmos a função password_hash.
<?php
$options = [
'cost' => 13,
'salt' => 'FPNk5qN6b6WIiLnUrp',
];
echo password_hash('MyPassword', PASSWORD_BCRYPT, $options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment