SHA256: ComputeHash |
Computes the hash for a give source.
Public Function ComputeHash( ByRef Source As Variant, Optional ByRef Index As Variant, Optional ByRef Count As Variant ) As Byte ( ) :
The Source can be either a byte-array or a Stream object.
If the source is a Stream object, then the hash continues to read the stream until no more data is can be read. The hash is computed from all data read from the stream.