Namespace: Assorted.Utils.Crypto
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Overload | Description |
---|---|
Compute(Byte[]) | Returns the hash code of a specified array of bytes. |
Compute(Stream) | Returns the hash code of content of a specified stream. |
Returns the hash code of a specified array of bytes.
public override Byte[] Compute(Byte[] bytes)
bytes
: Byte[]
An array of bytes to calculate its hash code.
Byte[]
The hash code of the specified bytes
as an array of bytes.
Exception | Description |
---|---|
System.ArgumentNullException | bytes is null . |
Returns the hash code of content of a specified stream.
public override Byte[] Compute(Stream stream)
stream
: Stream
A System.IO.Stream
object to calculate the hash code of its content.
Byte[]
The hash code of content of the stream
as an array of bytes.
Exception | Description |
---|---|
System.ArgumentNullException | stream is null . |
This document is generated by DG.