File size: 210 Bytes
acd7cf4
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from hashlib import md5

def compute_args_hash(*args):
    return md5(str(args).encode()).hexdigest()

def compute_content_hash(content, prefix: str = ""):
    return prefix + md5(content.encode()).hexdigest()