HSL 2.0 framework
Description of the framework
|
Class to generate a SHA-1 hash value More..
Public Member Functions | |
def | __init__ (self) |
Constructor | |
def | update (self, data) |
Updates the SHA1 hash value with the transferred data. More... | |
def | digest (self) |
Returns the SHA1 code. More... | |
def | hex_digest (self) |
Returns the SHA1 code as hex string. More... | |
Class to generate a SHA-1 hash value
Part of the packet for encryption
If a telegram arrives at input 2 (PIN_I_DO_HASH), a hash code is formed for the data block (string) at input 1 (PIN_I_DATA). Then the hash code is output as hexadecimal number on output 1 (PIN_O_HEXCODE)
def hsl20_4_crypto.hsl20_4_crypto.SHA1Hash.digest | ( | self | ) |
Returns the SHA1 code
def hsl20_4_crypto.hsl20_4_crypto.SHA1Hash.hex_digest | ( | self | ) |
Returns the SHA1 code as a hex string
def hsl20_4_crypto.hsl20_4_crypto.SHA1Hash.update | ( | self, | |
data | |||
) |
Updates the SHA1 hash value with the transferred data
data | string Data block |