formations/python/python3/en/_build/html/cipher.html

107 lines
4.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>A simple cipher &#8212; pyfundoc documentation</title>
<link rel="stylesheet" href="_static/bizstyle.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: ' ',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/bizstyle.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="prev" title="Coding standards" href="codingstandards.html" />
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<!--[if lt IE 9]>
<script type="text/javascript" src="_static/css3-mediaqueries.js"></script>
<![endif]-->
</head>
<body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="codingstandards.html" title="Coding standards"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">pyfundoc documentation</a> &#187;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="body" role="main">
<div class="section" id="module-cipher">
<span id="a-simple-cipher"></span><h1>A simple cipher<a class="headerlink" href="#module-cipher" title="Permalink to this headline"></a></h1>
<div class="section" id="the-cipher-module">
<h2>The <a class="reference internal" href="#module-cipher" title="cipher"><code class="xref py py-mod docutils literal"><span class="pre">cipher</span></code></a> module<a class="headerlink" href="#the-cipher-module" title="Permalink to this headline"></a></h2>
<dl class="data">
<dt id="cipher.domain">
<code class="descclassname">cipher.</code><code class="descname">domain</code><a class="headerlink" href="#cipher.domain" title="Permalink to this definition"></a></dt>
<dd><p>Set domain = string.digits if you want to work with
integers instead of printable letters or experiment
with other domains</p>
</dd></dl>
<dl class="function">
<dt id="cipher.mkcode">
<code class="descclassname">cipher.</code><code class="descname">mkcode</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/cipher.html#mkcode"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cipher.mkcode" title="Permalink to this definition"></a></dt>
<dd><p>Return a string containing the elements in domain
randomly permuted</p>
</dd></dl>
<dl class="function">
<dt id="cipher.mkdict">
<code class="descclassname">cipher.</code><code class="descname">mkdict</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/cipher.html#mkdict"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cipher.mkdict" title="Permalink to this definition"></a></dt>
<dd><p>Turns domain + secretkey into a dictionary of
substitution pairs</p>
</dd></dl>
<p><a class="reference external" href="_modules/cipher.html">full source for: cipher</a></p>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="codingstandards.html" title="Coding standards"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">pyfundoc documentation</a> &#187;</li>
</ul>
</div>
<div class="footer" role="contentinfo">
</div>
</body>
</html>