Skip to content

PythonQt.QtCore.QCryptographicHash · declarations 001

Back to PythonQt.QtCore.QCryptographicHash

Algorithm instance-attribute

Algorithm: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Md4 instance-attribute

Md4: Any

Md5 instance-attribute

Md5: Any

Sha1 instance-attribute

Sha1: Any

Sha224 instance-attribute

Sha224: Any

Sha256 instance-attribute

Sha256: Any

Sha384 instance-attribute

Sha384: Any

Sha3_224 instance-attribute

Sha3_224: Any

Sha3_256 instance-attribute

Sha3_256: Any

Sha3_384 instance-attribute

Sha3_384: Any

Sha3_512 instance-attribute

Sha3_512: Any

Sha512 instance-attribute

Sha512: Any

addData

addData(device: Any) -> bool

X.addData(device) -> bool

Supplemental documentation: Qt 5 reference:

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)

This function overloads addData().

bool QCryptographicHash::addData(QIODevice *device)

Reads the data from the open QIODevice device until it ends and hashes it. Returns true if reading was successful.

This function was introduced in Qt 5.0.

Upstream PySide2 reference signatures (binding differences may apply):

addData(self, data: PySide2.QtCore.QByteArray) -> None
addData(self, data: str, length: int) -> None
addData(self, device: PySide2.QtCore.QIODevice) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qcryptographichash.html#addData

hash

hash(data: Any, method: Any) -> Any

X.hash(data, method) -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

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

Returns the hash of data using method.

Upstream PySide2 reference signatures (binding differences may apply):

hash(data: PySide2.QtCore.QByteArray, method: PySide2.QtCore.QCryptographicHash.Algorithm) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/qcryptographichash.html#hash

reset

reset() -> None

X.reset()

Supplemental documentation: Qt 5 reference:

void QCryptographicHash::reset()

Resets the object.

Upstream PySide2 reference signatures (binding differences may apply):

reset(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qcryptographichash.html#reset

result

result() -> Any

X.result() -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

QByteArray QCryptographicHash::result() const

Returns the final hash value.

See also QByteArray::toHex().

Upstream PySide2 reference signatures (binding differences may apply):

result(self) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/qcryptographichash.html#result