Skip to content

Instantly share code, notes, and snippets.

View timb07's full-sized avatar
👕
Wearing a Hawaiian shirt

Tim Bell timb07

👕
Wearing a Hawaiian shirt
View GitHub Profile
@timb07
timb07 / gist:7fa21389a5eb215b5d1f9fd8580a444f
Last active August 20, 2018 05:36 — forked from christianclinton/gist:faa1aef119a0919aeb2e
RabbitMQ Password Hash - Python
#!/usr/bin/env python3
import hashlib
import binascii
# Utility methods for generating and comparing RabbitMQ user password hashes.
#
# Rabbit Password Hash Algorithm (using SHA-256):
#
# Generate a random 32 bit salt:
# 908D C60A