formations/python/python3/en/cipher.txt

32 lines
498 B
Plaintext

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`