C# Class System.Web.Security.MachineKey

Afficher le fichier Open project: vargaz/mono Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
GetHashed ( string purposes ) : byte[]

Method Details

Decode() public static méthode

public static Decode ( string encodedData, MachineKeyProtection protectionOption ) : byte[]
encodedData string
protectionOption MachineKeyProtection
Résultat byte[]

Encode() public static méthode

public static Encode ( byte data, MachineKeyProtection protectionOption ) : string
data byte
protectionOption MachineKeyProtection
Résultat string

Protect() public static méthode

public static Protect ( byte userData ) : byte[]
userData byte
Résultat byte[]

Unprotect() public static méthode

public static Unprotect ( byte protectedData ) : byte[]
protectedData byte
Résultat byte[]