📄 crypto.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>15. Cryptographic Services</title>
<META NAME="description" CONTENT="15. Cryptographic Services">
<META NAME="keywords" CONTENT="lib">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="lib.css" tppabs="http://www.python.org/doc/current/lib/lib.css">
<LINK REL="next" href="restricted.html" tppabs="http://www.python.org/doc/current/lib/restricted.html">
<LINK REL="previous" href="mmedia.html" tppabs="http://www.python.org/doc/current/lib/mmedia.html">
<LINK REL="up" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">
<LINK REL="next" href="module-md5.html" tppabs="http://www.python.org/doc/current/lib/module-md5.html">
</head>
<body>
<DIV CLASS="navigation"><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="module-sndhdr.html" tppabs="http://www.python.org/doc/current/lib/module-sndhdr.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="module-md5.html" tppabs="http://www.python.org/doc/current/lib/module-md5.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="module-sndhdr.html" tppabs="http://www.python.org/doc/current/lib/module-sndhdr.html">14.10 sndhdr </A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b> <a class="sectref" href="module-md5.html" tppabs="http://www.python.org/doc/current/lib/module-md5.html">15.1 md5 </A>
<br><hr></DIV>
<!--End of Navigation Panel-->
<H1>
<BR>
15. Cryptographic Services
</H1>
<P>
The modules described in this chapter implement various algorithms of
a cryptographic nature. They are available at the discretion of the
installation. Here's an overview:
<P>
<table class='synopsistable'>
<tr><td><b><tt class='module'><a href="module-md5.html" tppabs="http://www.python.org/doc/current/lib/module-md5.html">md5</a></tt></b></td>
<td class='synopsis'>RSA's MD5 message digest algorithm.</td></tr>
<tr><td><b><tt class='module'><a href="module-sha.html" tppabs="http://www.python.org/doc/current/lib/module-sha.html">sha</a></tt></b></td>
<td class='synopsis'>NIST's secure hash algorithm, SHA.</td></tr>
<tr><td><b><tt class='module'><a href="module-mpz.html" tppabs="http://www.python.org/doc/current/lib/module-mpz.html">mpz</a></tt></b></td>
<td class='synopsis'>Interface to the GNU MP library for arbitrary
precision arithmetic.</td></tr>
<tr><td><b><tt class='module'><a href="module-rotor.html" tppabs="http://www.python.org/doc/current/lib/module-rotor.html">rotor</a></tt></b></td>
<td class='synopsis'>Enigma-like encryption and decryption.</td></tr>
</table>
<BR>
<P>
Hardcore cypherpunks will probably find the cryptographic modules
written by Andrew Kuchling of further interest; the package adds
built-in modules for DES and IDEA encryption, provides a Python module
for reading and decrypting PGP files, and then some. These modules
are not distributed with Python but available separately. See the URL
<a class="url" href="javascript:if(confirm('http://starship.python.net/crew/amk/python/code/crypto.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://starship.python.net/crew/amk/python/code/crypto.html'" tppabs="http://starship.python.net/crew/amk/python/code/crypto.html">http://starship.python.net/crew/amk/python/code/crypto.html <img src="offsite.gif" tppabs="http://www.python.org/doc/current/icons/offsite.gif"
border='0' class='offsitelink' height='15' width='17' alt='[off-site link]'
></a> or
send email to <span class="email">amk1@bigfoot.com</span> for more information.
<DIV CLASS="navigation"><p><hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="module-sndhdr.html" tppabs="http://www.python.org/doc/current/lib/module-sndhdr.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="module-md5.html" tppabs="http://www.python.org/doc/current/lib/module-md5.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="module-sndhdr.html" tppabs="http://www.python.org/doc/current/lib/module-sndhdr.html">14.10 sndhdr </A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b> <a class="sectref" href="module-md5.html" tppabs="http://www.python.org/doc/current/lib/module-md5.html">15.1 md5 </A>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>See <i><a href="about.html" tppabs="http://www.python.org/doc/current/lib/about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -