Skip to content

Commit b799917

Browse files
Update checksum_tools.py
1 parent 3d374a8 commit b799917

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

glueops/checksum_tools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ def string_to_crc32(input_string: str) -> str:
1212
# Convert checksum to hexadecimal
1313
return hex(checksum)
1414

15-
def compute_sha224(text):
15+
def compute_sha224(input_string: str) -> str:
16+
"""Compute SHA224 checksum for a given string and return it in hexadecimal format."""
17+
1618
sha224_hash = hashlib.sha224()
1719
sha224_hash.update(text.encode('utf-8'))
1820
return sha224_hash.hexdigest()

0 commit comments

Comments
 (0)