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

BUG FIX

replace string passwd by variable passwd when update sha
parent c302e387
#/usr/bin/env python
import os import os
import hashlib import hashlib
import getpass import getpass
...@@ -14,7 +12,7 @@ while( passwd != confirm_passwd ): ...@@ -14,7 +12,7 @@ while( passwd != confirm_passwd ):
print "passwords does not match" print "passwords does not match"
h=hashlib.sha1() h=hashlib.sha1()
h.update('passwd') h.update( passwd )
salt = os.urandom(16).encode('hex') salt = os.urandom(16).encode('hex')
h.update( salt ) h.update( salt )
print "\n##################" 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