HashVal

class HashVal

Stores a 128-bit value that represents the hashed contents (typically MD5) of a file or buffer.

Inheritance diagram

digraph inheritanced6c448088e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "HashVal" [URL="acron.core.HashVal.html#acron.core.HashVal",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "HashVal" [arrowsize=0.75,style=""]; }
HashVal.__eq__()
HashVal.__init__()
HashVal.__lt__()
HashVal.__ne__()
HashVal.as_bin()

Returns the HashVal as a 16-byte binary string.

HashVal.as_dec()

Returns the HashVal as a string with four decimal numbers.

HashVal.as_hex()

Returns the HashVal as a 32-byte hexadecimal string.

HashVal.assign()
HashVal.compare_to()
HashVal.hash_buffer()

Generates the hash value by hashing the indicated data.

HashVal.hash_bytes()

Generates the hash value by hashing the indicated data.

HashVal.hash_file()

Generates the hash value from the indicated file. Returns true on success, false if the file cannot be read.

HashVal.hash_ramfile()

Generates the hash value by hashing the indicated data.

HashVal.hash_stream()

Generates the hash value from the indicated file. Returns true on success, false if the file cannot be read.

HashVal.hash_string()

Generates the hash value by hashing the indicated data.

HashVal.input_binary()

Inputs the HashVal as a binary stream of bytes in order. This is not the same order expected by read_stream().

HashVal.input_dec()

Inputs the HashVal as four unsigned decimal integers.

HashVal.input_hex()

Inputs the HashVal as a 32-digit hexadecimal number.

HashVal.merge_with()

Generates a new HashVal representing the xor of this one and the other one.

HashVal.output()
HashVal.output_binary()

Outputs the HashVal as a binary stream of bytes in order. This is not the same order generated by write_stream().

HashVal.output_dec()

Outputs the HashVal as four unsigned decimal integers.

HashVal.output_hex()

Outputs the HashVal as a 32-digit hexadecimal number.

HashVal.read_datagram()
HashVal.read_stream()
HashVal.set_from_bin()

Sets the HashVal from a 16-byte binary string. Returns true if successful, false otherwise.

HashVal.set_from_dec()

Sets the HashVal from a string with four decimal numbers. Returns true if valid, false otherwise.

HashVal.set_from_hex()

Sets the HashVal from a 32-byte hexademical string. Returns true if successful, false otherwise.

HashVal.write_datagram()
HashVal.write_stream()