class documentation

class FixedSha:

Constructor: FixedSha(hexsha)

View In Hierarchy

SHA object that behaves like hashlib's but is given a fixed value.

Method __init__ Initialize FixedSha with a fixed SHA value.
Method digest Return the raw SHA digest.
Method hexdigest Return the hex SHA digest.
Class Variable __slots__ Undocumented
Instance Variable _hexsha Undocumented
Instance Variable _sha Undocumented
def __init__(self, hexsha: str | bytes):

Initialize FixedSha with a fixed SHA value.

Parameters
hexsha:str | bytesHex SHA value as string or bytes
def digest(self) -> bytes:

Return the raw SHA digest.

def hexdigest(self) -> str:

Return the hex SHA digest.

__slots__: tuple[str, ...] =

Undocumented

_hexsha =

Undocumented

_sha =

Undocumented