Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
282e2b19
Commit
282e2b19
authored
Aug 09, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made a change to allow zpasswd to accept lower case encoding names.
parent
b3273ad2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
zpasswd.py
zpasswd.py
+2
-1
No files found.
zpasswd.py
View file @
282e2b19
...
...
@@ -85,7 +85,7 @@
##############################################################################
"""Zope password change system"""
__version__
=
'$Revision: 1.
6
$ '
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$ '
[
11
:
-
2
]
import
sys
,
string
,
sha
,
binascii
,
whrandom
,
getopt
,
getpass
,
os
...
...
@@ -102,6 +102,7 @@ def generate_salt():
return
whrandom
.
choice
(
salt_choices
)
def
generate_passwd
(
password
,
encoding
):
encoding
=
string
.
upper
(
encoding
)
if
encoding
==
'SHA'
:
pw
=
'{SHA}'
+
binascii
.
b2a_base64
(
sha
.
new
(
password
).
digest
())[:
-
1
]
elif
encoding
==
'CRYPT'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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