The QCryptographicHash class provides a way to generate cryptographic hashes. 更多...
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.
| 常量 | 值 | 描述 |
|---|---|---|
| QCryptographicHash.Md4 | 0 | 生成 MD4 哈希和 |
| QCryptographicHash.Md5 | 1 | 生成 MD5 哈希和 |
| QCryptographicHash.Sha1 | 2 | Generate an SHA1 hash sum |
Constructs an object that can be used to create a cryptographic hash from data using 方法 .
Adds the first length chars of data 到 cryptographic hash.
此函数重载 addData ().
Returns the hash of data 使用 方法 .
重置对象。
返回最终的哈希值。
另请参阅 QByteArray.toHex ().