QCryptographicHash Class Reference
|
enum | Algorithm { Md4, Md5, Sha1 } |
QCryptographicHash ( Algorithm method ) | |
~QCryptographicHash () | |
void | addData ( const char * data, int length ) |
void | addData ( const QByteArray & data ) |
void | reset () |
QByteArray | result () const |
QByteArray | hash ( const QByteArray & data, Algorithm method ) |
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 | Generate an MD4 hash sum |
QCryptographicHash::Md5 | 1 | Generate an MD5 hash sum |
QCryptographicHash::Sha1 | 2 | Generate an SHA1 hash sum |
Constructs an object that can be used to create a cryptographic hash from data using method.
Уничтожает объект.
Adds the first length chars of data to the cryptographic hash.
/overload
Returns the hash of data using method.
Resets the object.
Returns the final hash value.
See also QByteArray::toHex().
Авторские права © 2010 Nokia Corporation и/или её дочерние компании | Торговые марки | Qt 4.6.4 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |