C# Class System.Web.Security.MachineKey

Show file Open project: vargaz/mono Class Usage Examples

Public Methods

Method Description
Decode ( string encodedData, MachineKeyProtection protectionOption ) : byte[]
Encode ( byte data, MachineKeyProtection protectionOption ) : string
Protect ( byte userData ) : byte[]
Unprotect ( byte protectedData ) : byte[]

Private Methods

Method Description
GetHashed ( string purposes ) : byte[]

Method Details

Decode() public static method

public static Decode ( string encodedData, MachineKeyProtection protectionOption ) : byte[]
encodedData string
protectionOption MachineKeyProtection
return byte[]

Encode() public static method

public static Encode ( byte data, MachineKeyProtection protectionOption ) : string
data byte
protectionOption MachineKeyProtection
return string

Protect() public static method

public static Protect ( byte userData ) : byte[]
userData byte
return byte[]

Unprotect() public static method

public static Unprotect ( byte protectedData ) : byte[]
protectedData byte
return byte[]