C# Class Zazzles.Middleware.Authentication

Afficher le fichier Open project: FOGProject/zazzles

Méthodes publiques

Свойство Type Description
TestPassKey byte[]

Méthodes publiques

Méthode Description
Decrypt ( string toDecode ) : string

Decrypts a response using AES, filtering out encryption flags

HandShake ( ) : bool

Generate a random AES pass key and securely send it to the server

Private Methods

Méthode Description
Authentication ( ) : System
GetSecurityToken ( string filePath ) : byte[]

SetSecurityToken ( string filePath, byte token ) : void

Encrypt and save a security token

onTimerEnd ( object sender, System.Timers.ElapsedEventArgs elapsedEventArgs ) : void

Method Details

Decrypt() public static méthode

Decrypts a response using AES, filtering out encryption flags
public static Decrypt ( string toDecode ) : string
toDecode string The string to decrypt
Résultat string

HandShake() public static méthode

Generate a random AES pass key and securely send it to the server
public static HandShake ( ) : bool
Résultat bool

Property Details

TestPassKey public_oe static_oe property

public static byte[] TestPassKey
Résultat byte[]