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
a3358df8
Commit
a3358df8
authored
Jun 10, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document that the key should not contain null bytes.
parent
02289e17
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Doc/lib/librotor.tex
Doc/lib/librotor.tex
+3
-2
No files found.
Doc/lib/librotor.tex
View file @
a3358df8
...
...
@@ -29,7 +29,8 @@ The available functions in this module are:
\begin{funcdesc}
{
newrotor
}{
key
\optional
{
, numrotors
}}
Return a rotor object.
\var
{
key
}
is a string containing the encryption key
for the object; it can contain arbitrary binary data. The key will be used
for the object; it can contain arbitrary binary data but not null bytes.
The key will be used
to randomly generate the rotor permutations and their initial positions.
\var
{
numrotors
}
is the number of rotor permutations in the returned object;
if it is omitted, a default value of 6 will be used.
...
...
@@ -38,7 +39,7 @@ if it is omitted, a default value of 6 will be used.
Rotor objects have the following methods:
\begin{methoddesc}
[rotor]
{
setkey
}{
key
}
Sets the rotor's key to
\var
{
key
}
.
Sets the rotor's key to
\var
{
key
}
.
The key should not contain null bytes.
\end{methoddesc}
\begin{methoddesc}
[rotor]
{
encrypt
}{
plaintext
}
...
...
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