SymmetricAlgorithm.Create Méthode

Définition

Crée un objet de chiffrement pour exécuter l'algorithme symétrique.

Surcharges

Create()
Obsolète.
Obsolète.

Crée un objet de chiffrement par défaut utilisé pour exécuter l'algorithme symétrique.

Create(String)
Obsolète.

Crée l'objet de chiffrement spécifié utilisé pour exécuter l'algorithme symétrique.

Create()

Source:
SymmetricAlgorithm.cs
Source:
SymmetricAlgorithm.cs
Source:
SymmetricAlgorithm.cs

Attention

The default implementation of this cryptography algorithm is not supported

Attention

The default implementation of this cryptography algorithm is not supported.

Crée un objet de chiffrement par défaut utilisé pour exécuter l'algorithme symétrique.

C#
[System.Obsolete("The default implementation of this cryptography algorithm is not supported", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.SymmetricAlgorithm Create();
C#
[System.Obsolete("The default implementation of this cryptography algorithm is not supported.", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.SymmetricAlgorithm Create();
C#
public static System.Security.Cryptography.SymmetricAlgorithm Create();

Retours

Objet de chiffrement par défaut utilisé pour exécuter l'algorithme symétrique.

Attributs

Exceptions

.NET Core 2.0 - 3.1 et .NET 5 et versions ultérieures : dans tous les cas.

Remarques

Cette méthode est obsolète dans .NET 5 et versions ultérieures.

Nous vous recommandons de spécifier l’algorithme en appelant la Create(String) surcharge de cette méthode.

Voir aussi

S’applique à

.NET 9 et autres versions
Produit Versions (Obsolète)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1 (5, 6, 7, 8, 9)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Create(String)

Source:
SymmetricAlgorithm.cs
Source:
SymmetricAlgorithm.cs
Source:
SymmetricAlgorithm.cs

Attention

Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.

Crée l'objet de chiffrement spécifié utilisé pour exécuter l'algorithme symétrique.

C#
public static System.Security.Cryptography.SymmetricAlgorithm? Create(string algName);
C#
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.SymmetricAlgorithm? Create(string algName);
C#
public static System.Security.Cryptography.SymmetricAlgorithm Create(string algName);

Paramètres

algName
String

Nom de l'implémentation spécifique de la classe SymmetricAlgorithm à utiliser.

Retours

Objet de chiffrement utilisé pour exécuter l'algorithme symétrique.

Attributs

Voir aussi

S’applique à

.NET 9 et autres versions
Produit Versions (Obsolète)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6 (7, 8, 9)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1