Exemplo n.º 1
0
 /// <summary>
 /// Performs VNC Authentication using VNC DES encryption.  See the RFB Protocol doc 6.2.2.
 /// </summary>
 /// <param name="password">A string containing the user's password in clear text format.</param>
 protected void PerformVncAuthentication(string password)
 {
     byte[] challenge = rfb.ReadSecurityChallenge();
     rfb.WriteSecurityResponse(EncryptChallenge(password, challenge));
 }
Exemplo n.º 2
0
        /// <summary>
        ///     Performs VNC Authentication using VNC DES encryption.  See the RFB Protocol doc 6.2.2.
        /// </summary>
        /// <param name="password">A string containing the user's password in clear text format.</param>
        private void PerformVncAuthentication(string password)
        {
            var challenge = rfb.ReadSecurityChallenge();

            rfb.WriteSecurityResponse(EncryptChallenge(password, challenge));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Performs VNC Authentication using VNC DES encryption.  See the RFB Protocol doc 6.2.2.
        /// </summary>
        /// <param name="password">A string containing the user's password in clear text format.</param>
        private async Task PerformVncAuthentication(string password, CancellationToken ct = default)
        {
            var challenge = await rfb.ReadSecurityChallenge(ct).ConfigureAwait(false);

            await rfb.WriteSecurityResponse(EncryptChallenge(password, challenge), ct).ConfigureAwait(false);
        }