Skip to content

Commit 3c362f1

Browse files
committed
Use sha256 for component analysis cache key
1 parent 4050656 commit 3c362f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/lambda_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4899,7 +4899,7 @@ def _build_component_analysis_id(
48994899
instruction: str,
49004900
component_data_json: str,
49014901
) -> str:
4902-
digest = hashlib.sha1(
4902+
digest = hashlib.sha256(
49034903
f"{source_block_id}|{component_type}|{action}|{instruction}|{component_data_json}".encode("utf-8")
49044904
).hexdigest()
49054905
return f"analysis_{digest[:20]}"

0 commit comments

Comments
 (0)