Esempio n. 1
0
 private void Connect()
 {
     try
     {
         var encryptedKey = _rsa.GenerateNewAes256EncryptedKey(out var key);
         _client.SetEncryptedSessionKey(encryptedKey);
         _aes.SetAesKey(key);
         Aes         = _aes;
         IsConnected = true;
     }
     catch
     {
         return;
     }
 }