Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
#/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##################"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment