File: qcryptographichash.html

package info (click to toggle)
python-qt4 4.7.3-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 28,504 kB
  • ctags: 4,680
  • sloc: python: 28,738; cpp: 8,897; sh: 245; xml: 243; makefile: 150
file content (30 lines) | stat: -rw-r--r-- 5,065 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QCryptographicHash Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QCryptographicHash Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QCryptographicHash class provides a way to generate cryptographic hashes. <a href="#details">More...</a></p>
<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qcryptographichash.html#Algorithm-enum">Algorithm</a></b> { Md4, Md5, Sha1 }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qcryptographichash.html#QCryptographicHash">__init__</a></b> (<i>self</i>, Algorithm)</li><li><div class="fn" /><b><a href="qcryptographichash.html#addData">addData</a></b> (<i>self</i>, str)</li><li><div class="fn" /><b><a href="qcryptographichash.html#addData-2">addData</a></b> (<i>self</i>, QByteArray)</li><li><div class="fn" /><b><a href="qcryptographichash.html#reset">reset</a></b> (<i>self</i>)</li><li><div class="fn" />QByteArray <b><a href="qcryptographichash.html#result">result</a></b> (<i>self</i>)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" />QByteArray <b><a href="qcryptographichash.html#hash">hash</a></b> (QByteArray, Algorithm)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QCryptographicHash class provides a way to generate cryptographic hashes.</p>
<p>QCryptographicHash can be used to generate cryptographic hashes of binary or text data.</p>
<p>Currently MD4, MD5, and SHA-1 are supported.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="Algorithm-enum" />QCryptographicHash.Algorithm</h3><p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QCryptographicHash.Md4</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Generate an MD4 hash sum</td></tr>
<tr><td valign="top"><tt>QCryptographicHash.Md5</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Generate an MD5 hash sum</td></tr>
<tr><td valign="top"><tt>QCryptographicHash.Sha1</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Generate an SHA1 hash sum</td></tr>
</table></p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QCryptographicHash" />QCryptographicHash.__init__ (<i>self</i>, <a href="qcryptographichash.html#Algorithm-enum">Algorithm</a>)</h3><p>Constructs an object that can be used to create a cryptographic hash from data using <i>method</i>.</p>
<a name="//apple_ref/cpp/instm/QCryptographicHash/~QCryptographicHash" />
<h3 class="fn"><a name="addData" />QCryptographicHash.addData (<i>self</i>, str)</h3><p>Adds the first <i>length</i> chars of <i>data</i> to the cryptographic hash.</p>
<h3 class="fn"><a name="addData-2" />QCryptographicHash.addData (<i>self</i>, <a href="qbytearray.html">QByteArray</a>)</h3><p>/overload</p>
<a name="//apple_ref/cpp/clm/QCryptographicHash/hash" />
<h3 class="fn"><a name="hash" /><a href="qbytearray.html">QByteArray</a> QCryptographicHash.hash (<a href="qbytearray.html">QByteArray</a>, <a href="qcryptographichash.html#Algorithm-enum">Algorithm</a>)</h3><p>Returns the hash of <i>data</i> using <i>method</i>.</p>
<a name="//apple_ref/cpp/instm/QCryptographicHash/reset" />
<h3 class="fn"><a name="reset" />QCryptographicHash.reset (<i>self</i>)</h3><p>Resets the object.</p>
<a name="//apple_ref/cpp/instm/QCryptographicHash/result" />
<h3 class="fn"><a name="result" /><a href="qbytearray.html">QByteArray</a> QCryptographicHash.result (<i>self</i>)</h3><p>Returns the final hash value.</p>
<p>See also <a href="qbytearray.html#toHex">QByteArray.toHex</a>().</p>
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.7.3 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.2</td></tr></table></div></address></body></html>