Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

QCryptographicHash Class Reference
[модуль QtCore]

The QCryptographicHash class provides a way to generate cryptographic hashes. Далее...

 #include <QCryptographicHash>

Замечание: Все функции в этом классе реентерабельны.

Класс был добавлен в Qt 4.3.

Открытые типы

Открытые функции

Статические открытые члены


Подробное описание

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 Sha1 are supported.


Описание типов

enum QCryptographicHash::Algorithm

КонстантаЗначениеОписание
QCryptographicHash::Md40Generate an Md4 hash sum
QCryptographicHash::Md51Generate an Md5 hash sum
QCryptographicHash::Sha12Generate an Sha1 hash sum


Описание функций-членов

QCryptographicHash::QCryptographicHash ( Algorithm method )

Constructs an object that can be used to create a cryptographic hash from data using method.

QCryptographicHash::~QCryptographicHash ()

Уничтожает объект.

void QCryptographicHash::addData ( const char * data, int length )

Adds the first length chars of data to the cryptographic hash.

void QCryptographicHash::addData ( const QByteArray & data )

Это перегруженная функция, предоставленная для удобства.

/overload

QByteArray QCryptographicHash::hash ( const QByteArray & data, Algorithm method )   [static]

Returns the hash of data using method.

void QCryptographicHash::reset ()

Resets the object.

QByteArray QCryptographicHash::result () const

Returns the final hash value.


Copyright © 2008 Trolltech Торговые марки
Qt 4.3.5