MCPcopy Create free account
hub / github.com/echQoQ/RustSL / sha256_bytes

Function sha256_bytes

encrypt_lib/mac.py:6–9  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

4import hashlib
5
6def sha256_bytes(b):
7 sha = hashlib.sha256()
8 sha.update(b)
9 return sha.digest()
10
11def bytes_to_mac(b):
12 return '-'.join(f'{x:02X}' for x in b)

Callers 1

processFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected