HSL 2.0 framework
Description of the framework
|
Class for generating an MD5 hash. More..
Public Member Functions | |
def | __init__ (self) |
Constructor. More... | |
def | update (self, data) |
Updates the MD5 hash with the transferred data. More... | |
def | digest (self) |
Returns the MD5 code. More... | |
def | hex_digest (self) |
Returns the MD5 code as hex string. More... | |
Class for generating an MD5 hash
Part of the packet for encryption
If a telegram is received at input PIN_I_DO_HASH, a hash code is formed for the data block (string) at input PIN_I_DATA. Then the hash code is output as hexadecimal number at output PIN_O_HEXCODE
def hsl20_4_crypto.hsl20_4_crypto.MD5Hash.__init__ | ( | self | ) |
Constructor
def hsl20_4_crypto.hsl20_4_crypto.MD5Hash.digest | ( | self | ) |
Returns the MD5 code
def hsl20_4_crypto.hsl20_4_crypto.MD5Hash.hex_digest | ( | self | ) |
Returns the MD5 code as hex string
def hsl20_4_crypto.hsl20_4_crypto.MD5Hash.update | ( | self, | |
data | |||
) |
Updates the MD5 hash with the transferred data
data | string Data block |