Home · All Classes · Modules

QCryptographicHash Class Reference
[QtCore module]

The QCryptographicHash class provides a way to generate cryptographic hashes. More...

Types

Methods

Static Methods


Detailed Description

The QCryptographicHash class provides a way to generate cryptographic hashes.

QCryptographicHash can be used to generate cryptographic hashes of binary or text data.

Currently MD4, MD5, and SHA-1 are supported.


Type Documentation

QCryptographicHash.Algorithm

ConstantValueDescription
QCryptographicHash.Md40Generate an MD4 hash sum
QCryptographicHash.Md51Generate an MD5 hash sum
QCryptographicHash.Sha12Generate an SHA1 hash sum


Method Documentation

QCryptographicHash.__init__ (self, Algorithm)

Constructs an object that can be used to create a cryptographic hash from data using method.

QCryptographicHash.addData (self, str)

Adds the first length chars of data to the cryptographic hash.

QCryptographicHash.addData (self, QByteArray)

/overload

QByteArray QCryptographicHash.hash (QByteArray, Algorithm)

Returns the hash of data using method.

QCryptographicHash.reset (self)

Resets the object.

QByteArray QCryptographicHash.result (self)

Returns the final hash value.

See also QByteArray.toHex().


PyQt snapshot-4.7.4-51d5d4f1db28 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.6.3