en and fr python3 courses
This commit is contained in:
31
python/python3/en/cipher.txt
Normal file
31
python/python3/en/cipher.txt
Normal file
@ -0,0 +1,31 @@
|
||||
A simple cipher
|
||||
===============
|
||||
|
||||
.. currentmodule:: src
|
||||
|
||||
.. module:: cipher
|
||||
|
||||
|
||||
The :mod:`cipher` module
|
||||
------------------------
|
||||
|
||||
.. data:: domain
|
||||
|
||||
Set domain = string.digits if you want to work with
|
||||
integers instead of printable letters -- or experiment
|
||||
with other domains
|
||||
|
||||
|
||||
.. function:: mkcode
|
||||
|
||||
Return a string containing the elements in domain
|
||||
randomly permuted
|
||||
|
||||
|
||||
.. function:: mkdict
|
||||
|
||||
Turns domain + secretkey into a dictionary of
|
||||
substitution pairs
|
||||
|
||||
:src:`cipher`
|
||||
|
Reference in New Issue
Block a user