formations/python/python3/en/cipher.txt

32 lines
498 B
Plaintext
Raw Normal View History

2018-08-21 10:25:44 +02:00
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`