C# Class Zazzles.Data.Transform

Handle all encryption/decryption
Mostra file Open project: FOGProject/zazzles

Public Methods

Method Description
ByteArrayToHexString ( byte ba ) : string

Converts a byte array to a hex string

DecodeBase64 ( string toDecode ) : string

Decodes a base64 encoded string

EncodeBase64 ( string toEncode ) : string

Base64 encode a string

HexStringToByteArray ( string hex ) : byte[]

Converts a hex string to a byte array

Method Details

ByteArrayToHexString() public static method

Converts a byte array to a hex string
public static ByteArrayToHexString ( byte ba ) : string
ba byte The byte array to be converted
return string

DecodeBase64() public static method

Decodes a base64 encoded string
public static DecodeBase64 ( string toDecode ) : string
toDecode string A base64 encoded string
return string

EncodeBase64() public static method

Base64 encode a string
public static EncodeBase64 ( string toEncode ) : string
toEncode string The string that will be encoded
return string

HexStringToByteArray() public static method

Converts a hex string to a byte array
public static HexStringToByteArray ( string hex ) : byte[]
hex string The hex string to be converted
return byte[]