Skip to content

Instantly share code, notes, and snippets.

View sh0oki's full-sized avatar

Elisha Eshed sh0oki

View GitHub Profile
#!/usr/bin/python
import hashlib, sys
# Simplified version of https://github.com/drupal/drupal/blob/7.x/includes/password.inc
ALGO = hashlib.sha512
ITOA64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' # ICHS