Replace MD5 with SHA256 for cache key generation in http_client.py
All checks were successful
Blockchain Synchronization Verification / sync-verification (push) Successful in 21s
Integration Tests / test-service-integration (push) Successful in 1m15s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 15s
Security Scanning / security-scan (push) Successful in 1m13s
All checks were successful
Blockchain Synchronization Verification / sync-verification (push) Successful in 21s
Integration Tests / test-service-integration (push) Successful in 1m15s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 15s
Security Scanning / security-scan (push) Successful in 1m13s
This commit is contained in:
@@ -125,7 +125,7 @@ class AITBCHTTPClient:
|
||||
if params:
|
||||
import hashlib
|
||||
param_str = str(sorted(params.items()))
|
||||
return f"{url}:{hashlib.md5(param_str.encode()).hexdigest()}"
|
||||
return f"{url}:{hashlib.sha256(param_str.encode()).hexdigest()}"
|
||||
return url
|
||||
|
||||
def _get_cache(self, cache_key: str) -> Optional[Dict[str, Any]]:
|
||||
@@ -568,7 +568,7 @@ class AsyncAITBCHTTPClient:
|
||||
if params:
|
||||
import hashlib
|
||||
param_str = str(sorted(params.items()))
|
||||
return f"{url}:{hashlib.md5(param_str.encode()).hexdigest()}"
|
||||
return f"{url}:{hashlib.sha256(param_str.encode()).hexdigest()}"
|
||||
return url
|
||||
|
||||
def _get_cache(self, cache_key: str) -> Optional[Dict[str, Any]]:
|
||||
|
||||
Reference in New Issue
Block a user