Created
June 27, 2021 21:33
-
-
Save estefanionsantos/d6f423dbafecbb591cb66119c5d6c3fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Rubricate\Hash\InitHash; | |
| use Rubricate\Hash\AlgorithmHash; | |
| use Rubricate\Hash\SaltHash; | |
| $h = new InitHash( | |
| new AlgorithmHash('md5'), | |
| new SaltHash('YOUR_SALT') | |
| ); | |
| # user input | |
| $password = 'your_secret_password'; | |
| $hash = $h->getPassword($password); | |
| var_dump($hash); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment