Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gem
capsuledb
Commits
1578cf0b
Commit
1578cf0b
authored
Mar 27, 2012
by
Bertrand NÉRON
Browse files
BUG FIX
replace string passwd by variable passwd when update sha
parent
c302e387
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parser/useradd.py
View file @
1578cf0b
#/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
##################"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment