C# Class Zazzles.Middleware.Authentication

Show file Open project: FOGProject/zazzles

Public Properties

Property Type Description
TestPassKey byte[]

Public Methods

Method 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

Method 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 method

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

HandShake() public static method

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

Property Details

TestPassKey public static property

public static byte[] TestPassKey
return byte[]