(hexid)
return b64encode(a2b_hex(hexid))[:-1].decode('ascii')
From a hex fingerprint id, convert back to base-64 encoded value.
From a hex fingerprint id, convert back to base-64 encoded value.
From a hex fingerprint id convert back to base - 64 encoded value .
def hashFromHexId(hexid):
    """
    From a hex fingerprint id, convert back to base-64 encoded value.
    """
    if hexid[0] == '$':
        hexid = hexid[1:]
    return b64encode(a2b_hex(hexid))[:-1].decode('ascii')
def hashFromHexId ( hexid ) : if hexid [ 0 ] == '$' : hexid = hexid [ 1 : ] return b64encode ( a2b_hex ( hexid ) ) [ : - 1 ] . decode ( 'ascii' )