SslStream.CipherStrength Eigenschaft

Definition

Ruft einen Wert ab, der die Stärke des von diesem SslStream verwendeten Verschlüsselungsverfahrensalgorithmus angibt.Gets a value that identifies the strength of the cipher algorithm used by this SslStream.

public:
 virtual property int CipherStrength { int get(); };
public virtual int CipherStrength { get; }
member this.CipherStrength : int
Public Overridable ReadOnly Property CipherStrength As Integer

Eigenschaftswert

Ein Int32-Wert, der die Stärke des Algorithmus in Bits angibt.An Int32 value that specifies the strength of the algorithm, in bits.

Implementiert

Mono.Net.Security.IMonoSslStream.CipherStrength

Beispiele

Im folgenden Codebeispiel werden die Kryptografieeinstellungen für den angegebenen Stream angezeigt.The following code example displays the cryptography settings for the specified stream.

static void DisplaySecurityLevel( SslStream^ stream )
{
   Console::WriteLine( L"Cipher: {0} strength {1}", stream->CipherAlgorithm, stream->CipherStrength );
   Console::WriteLine( L"Hash: {0} strength {1}", stream->HashAlgorithm, stream->HashStrength );
   Console::WriteLine( L"Key exchange: {0} strength {1}", stream->KeyExchangeAlgorithm, stream->KeyExchangeStrength );
   Console::WriteLine( L"Protocol: {0}", stream->SslProtocol );
}


static void DisplaySecurityLevel(SslStream stream)
{
   Console.WriteLine("Cipher: {0} strength {1}", stream.CipherAlgorithm, stream.CipherStrength);
   Console.WriteLine("Hash: {0} strength {1}", stream.HashAlgorithm, stream.HashStrength);
   Console.WriteLine("Key exchange: {0} strength {1}", stream.KeyExchangeAlgorithm, stream.KeyExchangeStrength);
   Console.WriteLine("Protocol: {0}", stream.SslProtocol);
}
Private Shared Sub DisplaySecurityLevel(stream As SslStream)
    Console.WriteLine("Cipher: {0} strength {1}", stream.CipherAlgorithm, stream.CipherStrength)
    Console.WriteLine("Hash: {0} strength {1}", stream.HashAlgorithm, stream.HashStrength)
    Console.WriteLine("Key exchange: {0} strength {1}", stream.KeyExchangeAlgorithm, stream.KeyExchangeStrength)
    Console.WriteLine("Protocol: {0}", stream.SslProtocol)
End Sub

Hinweise

Der Wert dieser Eigenschaft ist 0 (null), bis die Authentifizierung erfolgt.The value of this property is zero until the authentication occurs.

Diese Eigenschaft gibt einen der folgenden Werte zurück:This property returns one of the following values:

  • 00

  • 4040

  • 5656

  • 8080

  • 128128

  • 168168

  • 192192

  • 256256

Gilt für: