Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
import
hashlib
5
6
def
sha256_bytes(b):
7
sha = hashlib.sha256()
8
sha.update(b)
9
return
sha.digest()
10
11
def
bytes_to_mac(b):
12
return
'-'
.join(f
'{x:02X}'
for
x in b)
Callers
1
process
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected