Spotter-VM/sahana/sahana-password-hash.py
Disassembler 5c30cc871a Update sahana install script to use git
Programatically insert Sahana admin account to database
2017-08-31 11:24:47 +02:00

9 lines
192 B
Python

#!/usr/bin/env python
import os
import sys
sys.path.append('/srv/sahana')
from gluon import CRYPT
print str(CRYPT(key=os.environ['SAHANA_HMAC'], digest_alg='sha512')('ZsG:nzP4Tv@AdX1L')[0])