Last active
July 12, 2017 13:24
-
-
Save sybrex/a030db35da3fdff7e0a1259f8c074224 to your computer and use it in GitHub Desktop.
Generate RabbitMQ password hash
This file contains 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 | |
$salt = '908DC60A'; | |
$password = 'secret'; | |
$hash = base64_encode(hex2bin($salt . hash('sha256', hex2bin($salt . bin2hex($password))))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment