Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtCore.QCryptographicHash Class Reference

The QCryptographicHash class provides a way to generate cryptographic hashes. More...

Inheritance diagram for QtCore.QCryptographicHash:
Collaboration diagram for QtCore.QCryptographicHash:

Public Types

enum  Algorithm { Md4 = 0, Md5 = 1, Sha1 = 2 }
 

Public Member Functions

 QCryptographicHash (QCryptographicHash.Algorithm method)
 
 
virtual void CreateProxy ()
 
new void AddData (QByteArray data)
 
 
new void AddData (string data, int length)
 
 
new void Reset ()
 
 
new QByteArray Result ()
 
 
new void Dispose ()
 

Static Public Member Functions

static QByteArray Hash (QByteArray data, QCryptographicHash.Algorithm method)
 
 

Protected Member Functions

 QCryptographicHash (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator:
Md4 

Generate an MD4 hash sum

Md5 

Generate an MD5 hash sum

Sha1 

Generate an SHA1 hash sum

Constructor & Destructor Documentation

QtCore.QCryptographicHash.QCryptographicHash ( System.Type  dummy)
protected
QtCore.QCryptographicHash.QCryptographicHash ( QCryptographicHash.Algorithm  method)

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

Member Function Documentation

new void QtCore.QCryptographicHash.AddData ( QByteArray  data)

This function overloads addData().

new void QtCore.QCryptographicHash.AddData ( string  data,
int  length 
)

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

virtual void QtCore.QCryptographicHash.CreateProxy ( )
virtual
new void QtCore.QCryptographicHash.Dispose ( )
static QByteArray QtCore.QCryptographicHash.Hash ( QByteArray  data,
QCryptographicHash.Algorithm  method 
)
static

Returns the hash of data using method.

new void QtCore.QCryptographicHash.Reset ( )

Resets the object.

new QByteArray QtCore.QCryptographicHash.Result ( )

Returns the final hash value.

See also QByteArray::toHex().

Member Data Documentation

SmokeInvocation QtCore.QCryptographicHash.interceptor
protected

Property Documentation

virtual System.IntPtr QtCore.QCryptographicHash.SmokeObject
getset