The PySide.QtCore.QCryptographicHash class provides a way to generate cryptographic hashes.
PySide.QtCore.QCryptographicHash can be used to generate cryptographic hashes of binary or text data.
Currently MD4, MD5, and SHA-1 are supported.
| Parameters: | method – PySide.QtCore.QCryptographicHash.Algorithm |
|---|
Constructs an object that can be used to create a cryptographic hash from data using method .
| Constant | Description |
|---|---|
| QCryptographicHash.Md4 | Generate an MD4 hash sum |
| QCryptographicHash.Md5 | Generate an MD5 hash sum |
| QCryptographicHash.Sha1 | Generate an SHA1 hash sum |
| Parameters: | data – PySide.QtCore.QByteArray |
|---|
This function overloads PySide.QtCore.QCryptographicHash.addData() .
| Parameters: | data – str |
|---|
Adds the first length chars of data to the cryptographic hash.
| Parameters: |
|
|---|---|
| Return type: |
Returns the hash of data using method .
Resets the object.
| Return type: | PySide.QtCore.QByteArray |
|---|
Returns the final hash value.
See also