Skip to content

Instantly share code, notes, and snippets.

@sybrex
Last active July 12, 2017 13:24
Show Gist options
  • Save sybrex/a030db35da3fdff7e0a1259f8c074224 to your computer and use it in GitHub Desktop.
Save sybrex/a030db35da3fdff7e0a1259f8c074224 to your computer and use it in GitHub Desktop.
Generate RabbitMQ password hash
<?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