Commit 6c8a558
committed
security: Replace weak MD5 hash with SHA256 in MCPSessionManager
Replaces `hashlib.md5` with `hashlib.sha256` for session key generation
in `mcp_session_manager.py` to mitigate security risks associated with
weak cryptographic hashes. Updated the corresponding unit test to
expect SHA256 hashes.1 parent a893fa0 commit 6c8a558
File tree
2 files changed
+2
-2
lines changed- src/google/adk/tools/mcp_tool
- tests/unittests/tools/mcp_tool
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
0 commit comments