Commit 1578cf0b authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

BUG FIX

replace string passwd by variable passwd when update sha
parent c302e387
#/usr/bin/env python
import os
import hashlib
import getpass
......@@ -14,7 +12,7 @@ while( passwd != confirm_passwd ):
print "passwords does not match"
h=hashlib.sha1()
h.update('passwd')
h.update( passwd )
salt = os.urandom(16).encode('hex')
h.update( salt )
print "\n##################"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment