C# Class RemoteViewing.Vnc.VncPasswordChallenge

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

Méthodes publiques

Méthode 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

Méthode Description
ReverseBits ( byte @value ) : byte

Reverses the bits of a byte.

Method Details

GenerateChallenge() public static méthode

Generates a 16-byte challenge.
public static GenerateChallenge ( ) : byte[]
Résultat byte[]

GetChallengeResponse() public static méthode

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. ///
Résultat void

GetChallengeResponse() public static méthode

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. ///
Résultat void