From a024790c5b824c9ea9cc7b95ca46cfeac932ab70 Mon Sep 17 00:00:00 2001 From: Michael Scovetta Date: Mon, 7 Apr 2025 15:34:32 -0400 Subject: [PATCH] Fix sha256_hash docstring (#6236) Fixes the sha256_hash docstring to refer to SHA-256 and not MD5. ## Why are these changes needed? The docstring refers to (presumably) a previous implementation that was using MD5. ## Related issue number N/A ## Checks - [X] I've included any doc changes needed for . See to build and test documentation locally. - [N/A] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [N/A] I've made sure all auto checks have passed. --- python/packages/autogen-studio/autogenstudio/utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/autogen-studio/autogenstudio/utils/utils.py b/python/packages/autogen-studio/autogenstudio/utils/utils.py index 053e0fcc4..eb5fc5ab5 100644 --- a/python/packages/autogen-studio/autogenstudio/utils/utils.py +++ b/python/packages/autogen-studio/autogenstudio/utils/utils.py @@ -15,10 +15,10 @@ from ..version import APP_NAME def sha256_hash(text: str) -> str: """ - Compute the MD5 hash of a given text. + Compute the SHA-256 hash of a given text. :param text: The string to hash - :return: The MD5 hash of the text + :return: The SHA-256 hash of the text, hex-encoded. """ return hashlib.sha256(text.encode()).hexdigest()