Hướng dẫn python compare byte arrays

I am trying to compare two byte arrays in Python.

This is my code

print["new_digest: ", new_digest]
print["digest: ", digest]
if digest == new_digest:
    return True
else:
    return False

and this is the output:

new_digest:  b"

Chủ Đề