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
<https://microsoft.github.io/autogen/>. See
<https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> 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.
This commit is contained in:
Michael Scovetta 2025-04-07 15:34:32 -04:00 committed by GitHub
parent f564781fef
commit a024790c5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()