import hashlib


def hashkey(string, encoding='utf-8'): #-------------------------------------<<<
    """Return MD5 hex digest for a string value.

    Optional encoding argument defaults to UTF-8.
    """
    return hashlib.md5(string.encode(encoding)).hexdigest()