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.
| 参数: | 方法 – PySide.QtCore.QCryptographicHash.Algorithm |
|---|
构造可用于从数据创建加密哈希的对象,使用 方法 .
| 常量 | 描述 |
|---|---|
| QCryptographicHash.Md4 | 生成 MD4 哈希和 |
| QCryptographicHash.Md5 | 生成 MD5 哈希和 |
| QCryptographicHash.Sha1 | Generate an SHA1 hash sum |
| 参数: | data – PySide.QtCore.QByteArray |
|---|
| 参数: | data – str |
|---|
Adds the first length chars of data to the cryptographic hash.
| 参数: | |
|---|---|
| 返回类型: |
Returns the hash of data 使用 方法 .
重置对象。
| 返回类型: | PySide.QtCore.QByteArray |
|---|
返回最终的哈希值。
另请参阅