C# Class RemoteViewing.Vnc.VncPasswordChallenge

Provides helper methods which implement the VNC password challenge protocol.
Datei anzeigen Open project: qmfrederik/remoteviewing Class Usage Examples

Public Methods

Method Description
GenerateChallenge ( ) : byte[]

Generates a 16-byte challenge.

GetChallengeResponse ( byte challenge, byte password, byte response ) : void

Calculates a response for a password challenge, using a password.

GetChallengeResponse ( byte challenge, char password, byte response ) : void

Calculates a response for a password challenge, using a password.

Private Methods

Method Description
ReverseBits ( byte @value ) : byte

Reverses the bits of a byte.

Method Details

GenerateChallenge() public static method

Generates a 16-byte challenge.
public static GenerateChallenge ( ) : byte[]
return byte[]

GetChallengeResponse() public static method

Calculates a response for a password challenge, using a password.
public static GetChallengeResponse ( byte challenge, byte password, byte response ) : void
challenge byte /// The challenge received from the server. ///
password byte /// The password to encrypt the challenge with. ///
response byte /// The response to send back to the server. ///
return void

GetChallengeResponse() public static method

Calculates a response for a password challenge, using a password.
public static GetChallengeResponse ( byte challenge, char password, byte response ) : void
challenge byte /// The challenge received from the server. ///
password char /// The password to encrypt the challenge with. ///
response byte /// The response to send back to the server. ///
return void