C# Class Cimbalino.Phone.Toolkit.Extensions.ByteArrayExtensions

Provides a set of static (Shared in Visual Basic) methods for byte array instances.
Show file Open project: Cimbalino/Cimbalino-Phone-Toolkit

Public Methods

Method Description
ComputeHMACMD5Hash ( this input, byte key ) : byte[]

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

ComputeHMACMD5Hash ( this input, byte key, int offset, int count ) : byte[]

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

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

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

ComputeHMACSHA1Hash ( this input, byte key, int offset, int count ) : byte[]

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

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

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

ComputeHMACSHA256Hash ( this input, byte key, int offset, int count ) : byte[]

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

ComputeMD5Hash ( this input ) : byte[]

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

ComputeMD5Hash ( this input, int offset, int count ) : byte[]

Computes the MD5 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.

ComputeSHA1Hash ( this input, int offset, int count ) : 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.

ComputeSHA256Hash ( this input, int offset, int count ) : byte[]

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

ToBase64String ( this input ) : string

Converts an array of 8-bit unsigned integers to its equivalent string representation encoded with base 64 digits.

ToString ( this input, Encoding encoding ) : string

Converts an array of 8-bit unsigned integers to its equivalent string representation, using the specified Encoding.

Method Details

ComputeHMACMD5Hash() public static method

Computes the HMACMD5 hash for the current byte array using the managed library.
public static ComputeHMACMD5Hash ( this input, byte key ) : byte[]
input this An array of 8-bit unsigned integers.
key byte The key to use in the hash algorithm.
return byte[]

ComputeHMACMD5Hash() public static method

Computes the HMACMD5 hash for the current byte array using the managed library.
public static ComputeHMACMD5Hash ( this input, byte key, int offset, int count ) : byte[]
input this An array of 8-bit unsigned integers.
key byte The key to use in the hash algorithm.
offset int The offset into the byte array from which to begin using data.
count int The number of bytes in the array to use as data.
return byte[]

ComputeHMACSHA1Hash() public static method

Computes the HMACSHA1 hash for the current byte array using the managed library.
public static ComputeHMACSHA1Hash ( this input, byte key ) : byte[]
input this An array of 8-bit unsigned integers.
key byte The key to use in the hash algorithm.
return byte[]

ComputeHMACSHA1Hash() public static method

Computes the HMACSHA1 hash for the current byte array using the managed library.
public static ComputeHMACSHA1Hash ( this input, byte key, int offset, int count ) : byte[]
input this An array of 8-bit unsigned integers.
key byte The key to use in the hash algorithm.
offset int The offset into the byte array from which to begin using data.
count int The number of bytes in the array to use as data.
return byte[]

ComputeHMACSHA256Hash() public static method

Computes the HMACSHA256 hash for the current byte array using the managed library.
public static ComputeHMACSHA256Hash ( this input, byte key ) : byte[]
input this An array of 8-bit unsigned integers.
key byte The key to use in the hash algorithm.
return byte[]

ComputeHMACSHA256Hash() public static method

Computes the HMACSHA256 hash for the current byte array using the managed library.
public static ComputeHMACSHA256Hash ( this input, byte key, int offset, int count ) : byte[]
input this An array of 8-bit unsigned integers.
key byte The key to use in the hash algorithm.
offset int The offset into the byte array from which to begin using data.
count int The number of bytes in the array to use as data.
return byte[]

ComputeMD5Hash() public static method

Computes the MD5 hash for the current byte array using the managed library.
public static ComputeMD5Hash ( this input ) : byte[]
input this An array of 8-bit unsigned integers.
return byte[]

ComputeMD5Hash() public static method

Computes the MD5 hash for the current byte array using the managed library.
public static ComputeMD5Hash ( this input, int offset, int count ) : byte[]
input this An array of 8-bit unsigned integers.
offset int The offset into the byte array from which to begin using data.
count int The number of bytes in the array to use as data.
return byte[]

ComputeSHA1Hash() public static method

Computes the SHA1 hash for the current byte array using the managed library.
public static ComputeSHA1Hash ( this input ) : byte[]
input this An array of 8-bit unsigned integers.
return byte[]

ComputeSHA1Hash() public static method

Computes the SHA1 hash for the current byte array using the managed library.
public static ComputeSHA1Hash ( this input, int offset, int count ) : byte[]
input this An array of 8-bit unsigned integers.
offset int The offset into the byte array from which to begin using data.
count int The number of bytes in the array to use as data.
return byte[]

ComputeSHA256Hash() public static method

Computes the SHA256 hash for the current byte array using the managed library.
public static ComputeSHA256Hash ( this input ) : byte[]
input this An array of 8-bit unsigned integers.
return byte[]

ComputeSHA256Hash() public static method

Computes the SHA256 hash for the current byte array using the managed library.
public static ComputeSHA256Hash ( this input, int offset, int count ) : byte[]
input this An array of 8-bit unsigned integers.
offset int The offset into the byte array from which to begin using data.
count int The number of bytes in the array to use as data.
return byte[]

ToBase64String() public static method

Converts an array of 8-bit unsigned integers to its equivalent string representation encoded with base 64 digits.
public static ToBase64String ( this input ) : string
input this An array of 8-bit unsigned integers.
return string

ToString() public static method

Converts an array of 8-bit unsigned integers to its equivalent string representation, using the specified Encoding.
public static ToString ( this input, Encoding encoding ) : string
input this An array of 8-bit unsigned integers.
encoding System.Text.Encoding The to use for encoding the characters.
return string