import hashlib
import base64


def short_hash(string):
    """ determine a short (3-character) hash from a string
    """
    string = string.lower().encode('utf-8')
    dig = hashlib.md5(string).digest()
    hsh = base64.urlsafe_b64encode(dig)[:3]
    return hsh.decode()