Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fdd4f3f4
Commit
fdd4f3f4
authored
Feb 01, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added docstring to crypt.crypt() based on the documentation.
parent
238756c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Modules/cryptmodule.c
Modules/cryptmodule.c
+10
-1
No files found.
Modules/cryptmodule.c
View file @
fdd4f3f4
...
...
@@ -22,8 +22,17 @@ static PyObject *crypt_crypt(self, args)
}
static
char
crypt_crypt__doc__
[]
=
"\
crypt(word, salt) -> string
\n
\
word will usually be a user's password. salt is a 2-character string
\n
\
which will be used to select one of 4096 variations of DES. The characters
\n
\
in salt must be either
\"
.
\"
,
\"
/
\"
, or an alphanumeric character. Returns
\n
\
the hashed password as a string, which will be composed of characters from
\n
\
the same alphabet as the salt."
;
static
PyMethodDef
crypt_methods
[]
=
{
{
"crypt"
,
crypt_crypt
},
{
"crypt"
,
crypt_crypt
,
0
,
crypt_crypt__doc__
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
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