Skip to content

Instantly share code, notes, and snippets.

@estefanionsantos
Created June 27, 2021 21:33
Show Gist options
  • Save estefanionsantos/d6f423dbafecbb591cb66119c5d6c3fc to your computer and use it in GitHub Desktop.
Save estefanionsantos/d6f423dbafecbb591cb66119c5d6c3fc to your computer and use it in GitHub Desktop.
<?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