ComputeHash
Computes a hash value for a source in a single pass.
Public Function ComputeHash(
ByRef Source As Variant,
Optional ByRef Index As Variant,
Optional ByRef Count As Variant ) As Byte ( )
Parameters
- Source
-
[ByRef]
Variant.
This can be either a Byte array or any Stream compatible object.
- Index
-
[ByRef]
Optional.
Variant.
The starting index in the Byte array. This is ignored for Stream objects.
- Count
-
[ByRef]
Optional.
Variant.
The number of bytes in the array to be computed. This is ignored for Stream objects.
Return Values
Byte() - A 32-byte hash value.
Remarks
If a Stream object is passed in, then the stream is continuously read and the hash calculated until
there is no more data left to read from the stream.
See Also
Project CorLib Overview
Class SHA256Managed Overview