Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cbomkit/sonar-cryptography
/ PycaHashDirectTest.py
File
PycaHashDirectTest.py
python/src/test/files/rules/detection/hash/PycaHashDirectTest.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
cryptography.hazmat.primitives
import
hashes
2
3
sha256_obj = hashes.Hash(hashes.SHA256())
# Noncompliant {{(MessageDigest) SHA-256}}
4
sha256_obj.update(b
"data"
)
Callers
nothing calls this directly
Calls
1
update
Method · 0.65
Tested by
no test coverage detected