Skip to Content
oxcrypto
HashesProtocol compatibility

SHABAL

Shabal digest algorithms.

Example

from oxcrypto.hash.shabal import SHABAL

algorithm = SHABAL.SHABAL192
digest = algorithm.digest(b"hello")
assert digest == algorithm.digest_chunks([b"he", b"llo"])

hasher = algorithm.new()
hasher.update(b"he")
hasher.update(b"llo")
assert hasher.digest() == digest
print(digest.hex())

Variants

  • SHABAL.SHABAL192
  • SHABAL.SHABAL224
  • SHABAL.SHABAL256
  • SHABAL.SHABAL384
  • SHABAL.SHABAL512

Methods

digest(self, data: bytes, /) -> bytes
digest_chunks(self, chunks: Iterable[bytes], /) -> bytes
new(self) -> Hasher

On this page