From 106a8c6a8b4c4927cc442ecc9e80e6d119f60f1a Mon Sep 17 00:00:00 2001 From: whyseu <35478590+whyseu@users.noreply.github.com> Date: Thu, 14 Aug 2025 20:20:07 +0800 Subject: [PATCH] Potential fix for code scanning alert no. 1: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- examples/python/hosted_mode/sample_alice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python/hosted_mode/sample_alice.py b/examples/python/hosted_mode/sample_alice.py index 278a2a5..884d312 100644 --- a/examples/python/hosted_mode/sample_alice.py +++ b/examples/python/hosted_mode/sample_alice.py @@ -24,7 +24,7 @@ sdk_short_term_key_callback_list = [] def sdk_short_term_key_callback(local_did, remote_did, secret_key_json): - print(f"SDK short_term_key_callback: {local_did}, {remote_did}, {secret_key_json}") + print(f"SDK short_term_key_callback: {local_did}, {remote_did}, [secret_key_json REDACTED]") sdk_short_term_key_callback_list.append((local_did, remote_did, secret_key_json))