finish Method
Completes the hash and returns the resulting message digest.
Syntax
def finish() -> bytes: ...
Remarks
This method finalizes the hashing operation and returns the message digest of the input data. Use it in conjuction with reset and update methods to process data in chunks.