API

Sha256bit

class sha256bit.Sha256bit(m=None, *, bitlen=None)
digest()

Return the digest of the bytes passed to the update() method so far as a bytes object.

export_state()

Export current state to a dict

hexdigest()

Like digest() except the digest is returned as a string of double length, containing only hexadecimal digits.

static import_state(state)

Initialize an instance from an exported state

update(m, *, bitlen=None)

Update the hash object with the bytes in data. Repeated calls are equivalent to a single call with the concatenation of all the arguments.