C# Class NetSeal_Helper.Extensions.StringExtensions

A set of Extensions for Strings
Show file Open project: Alcatraz3222/NetSeal-Helper

Public Methods

Method Description
FromBase64String ( this base64String ) : byte[]

Returns the byte[] from a Base64 string

GetAsciiBytes ( this input ) : byte[]

Resturns the byte[] from a string using ASCIIEncoding

GetMD5 ( this input, string format ) : string

Returns the MD5 of a string

GetSHA1 ( this input, string format ) : string

Returns the SHA1 of a string

Method Details

FromBase64String() public static method

Returns the byte[] from a Base64 string
public static FromBase64String ( this base64String ) : byte[]
base64String this
return byte[]

GetAsciiBytes() public static method

Resturns the byte[] from a string using ASCIIEncoding
public static GetAsciiBytes ( this input ) : byte[]
input this
return byte[]

GetMD5() public static method

Returns the MD5 of a string
public static GetMD5 ( this input, string format ) : string
input this
format string The format which will be used to format each byte
return string

GetSHA1() public static method

Returns the SHA1 of a string
public static GetSHA1 ( this input, string format ) : string
input this
format string The format which will be used to format each byte
return string