This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
| Name | Description |
|---|---|
| HashData(Byte[]) | Computes the hash of data using the SHA-256 algorithm. |
| HashData(Stream) | Computes the hash of a stream using the SHA-256 algorithm. |
| HashData(ReadOnlySpan<Byte>) | Computes the hash of data using the SHA-256 algorithm. |
| HashData(Stream, Span<Byte>) | Computes the hash of a stream using the SHA-256 algorithm. |
| HashData(ReadOnlySpan<Byte>, Span<Byte>) | Computes the hash of data using the SHA-256 algorithm. |
Computes the hash of data using the SHA-256 algorithm.
public: static cli::array <System::Byte> ^ HashData(cli::array <System::Byte> ^ source);public static byte[] HashData(byte[] source);static member HashData : byte[] -> byte[]Public Shared Function HashData (source As Byte()) As Byte()The data to hash.
The hash of the data.
source isnull.
Computes the hash of a stream using the SHA-256 algorithm.
public: static cli::array <System::Byte> ^ HashData(System::IO::Stream ^ source);public static byte[] HashData(System.IO.Stream source);static member HashData : System.IO.Stream -> byte[]Public Shared Function HashData (source As Stream) As Byte()The stream to hash.
The hash of the data.
source isnull.
source does not support reading.
Computes the hash of data using the SHA-256 algorithm.
public: static cli::array <System::Byte> ^ HashData(ReadOnlySpan<System::Byte> source);public static byte[] HashData(ReadOnlySpan<byte> source);static member HashData : ReadOnlySpan<byte> -> byte[]Public Shared Function HashData (source As ReadOnlySpan(Of Byte)) As Byte()The data to hash.
The hash of the data.
Computes the hash of a stream using the SHA-256 algorithm.
public: static int HashData(System::IO::Stream ^ source, Span<System::Byte> destination);public static int HashData(System.IO.Stream source, Span<byte> destination);static member HashData : System.IO.Stream * Span<byte> -> intPublic Shared Function HashData (source As Stream, destination As Span(Of Byte)) As IntegerThe stream to hash.
The total number of bytes written todestination.
source isnull.
The buffer indestination is too small to hold the calculated hash size. The SHA-256 algorithm always produces a 256-bit hash, or 32 bytes.
-or-
source does not support reading.
Computes the hash of data using the SHA-256 algorithm.
public: static int HashData(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination);public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination);static member HashData : ReadOnlySpan<byte> * Span<byte> -> intPublic Shared Function HashData (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte)) As IntegerThe data to hash.
The total number of bytes written todestination.
The buffer indestination is too small to hold the calculated hash size. The SHA-256 algorithm always produces a 256-bit hash, or 32 bytes.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?