Calculates the SHA-256 hash of a string or bytes content.
Returns:
The hex-encoded SHA-256 digest.
Methods
calculate_sha256
calculate_sha256(content: Union) -> str
Calculates the SHA-256 hash of a string or bytes content.
Returns:
The hex-encoded SHA-256 digest.
| Parameter | Type | Description |
|---|---|---|
| content | Union | The content to hash; str is encoded as UTF-8 first. |
Generated with Flude
Copyright © 2026