8 lines
120 B
Python
Raw Normal View History

2025-03-30 16:04:34 +08:00
import hashlib
def md5(s: str) -> str:
m = hashlib.md5()
m.update(s.encode('utf-8'))
return m.hexdigest()