QCryptographicHash ClassThe QCryptographicHash class provides a way to generate cryptographic hashes. More... #include <QCryptographicHash> Note: All functions in this class are reentrant. This class was introduced in Qt 4.3. Public Types
Public Functions
Static Public Members
Detailed DescriptionThe 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, SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512 are supported. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QCryptographicHash::Md4 | 0 | Generate an MD4 hash sum |
QCryptographicHash::Md5 | 1 | Generate an MD5 hash sum |
QCryptographicHash::Sha1 | 2 | Generate an SHA-1 hash sum |
QCryptographicHash::Sha224 | 3 | Generate an SHA-224 hash sum |
QCryptographicHash::Sha256 | 4 | Generate an SHA-256 hash sum |
QCryptographicHash::Sha384 | 5 | Generate an SHA-384 hash sum |
QCryptographicHash::Sha512 | 6 | Generate an SHA-512 hash sum |
Constructs an object that can be used to create a cryptographic hash from data using method.
Destroys the object.
Adds the first length chars of data to the cryptographic hash.
Reads the data from the open QIODevice device until it ends and hashes it. Returns true if reading was successful.
This function overloads addData().
Returns the hash of data using method.
Resets the object.
Returns the final hash value.
See also QByteArray::toHex().