def HashByteArray(data):
    hasher = hashlib.sha256()
    hasher.update(data)
    h = hasher.digest()
    bah = bytearray(h)
    return bah
def HashByteArray(data):
    hasher = hashlib.sha256()
    hasher.update(data)
    h = hasher.digest()
    bah = bytearray(h)
    return bah