C# Класс Cimbalino.Phone.Toolkit.Extensions.StreamExtensions

Provides a set of static (Shared in Visual Basic) methods for Stream instances.
Показать файл Открыть проект

Открытые методы

Метод Описание
ComputeHMACSHA1Hash ( this input, byte key ) : byte[]

Computes the HMACSHA1 hash for the current byte array using the managed library.

ComputeHMACSHA256Hash ( this input, byte key ) : byte[]

Computes the SHA256 hash for the current byte array using the managed library.

ComputeSHA1Hash ( this input ) : byte[]

Computes the SHA1 hash for the current byte array using the managed library.

ComputeSHA256Hash ( this input ) : byte[]

Computes the SHA256 hash for the current byte array using the managed library.

ToArray ( this input ) : byte[]

Writes the stream contents to a byte array.

ToArrayAsync ( this input ) : Task

Writes the stream contents to a byte array.

Описание методов

ComputeHMACSHA1Hash() публичный статический Метод

Computes the HMACSHA1 hash for the current byte array using the managed library.
public static ComputeHMACSHA1Hash ( this input, byte key ) : byte[]
input this The input to compute the hash code for.
key byte The key to use in the hash algorithm.
Результат byte[]

ComputeHMACSHA256Hash() публичный статический Метод

Computes the SHA256 hash for the current byte array using the managed library.
public static ComputeHMACSHA256Hash ( this input, byte key ) : byte[]
input this The input to compute the hash code for.
key byte The key to use in the hash algorithm.
Результат byte[]

ComputeSHA1Hash() публичный статический Метод

Computes the SHA1 hash for the current byte array using the managed library.
public static ComputeSHA1Hash ( this input ) : byte[]
input this The input to compute the hash code for.
Результат byte[]

ComputeSHA256Hash() публичный статический Метод

Computes the SHA256 hash for the current byte array using the managed library.
public static ComputeSHA256Hash ( this input ) : byte[]
input this The input to compute the hash code for.
Результат byte[]

ToArray() публичный статический Метод

Writes the stream contents to a byte array.
public static ToArray ( this input ) : byte[]
input this The input stream.
Результат byte[]

ToArrayAsync() публичный статический Метод

Writes the stream contents to a byte array.
public static ToArrayAsync ( this input ) : Task
input this The input stream.
Результат Task