8 lines
120 B
Python
8 lines
120 B
Python
|
|
import hashlib
|
||
|
|
|
||
|
|
|
||
|
|
def md5(s: str) -> str:
|
||
|
|
m = hashlib.md5()
|
||
|
|
m.update(s.encode('utf-8'))
|
||
|
|
return m.hexdigest()
|