SymmetricAlgorithm.Create Method (System.Security.Cryptography) (original) (raw)

Source:

SymmetricAlgorithm.cs

Source:

SymmetricAlgorithm.cs

Source:

SymmetricAlgorithm.cs

Caution

The default implementation of this cryptography algorithm is not supported.

Caution

The default implementation of this cryptography algorithm is not supported

Creates a default cryptographic object used to perform the symmetric algorithm.

public:
 static System::Security::Cryptography::SymmetricAlgorithm ^ Create();
[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();
[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();
public static System.Security.Cryptography.SymmetricAlgorithm Create();
[<System.Obsolete("The default implementation of this cryptography algorithm is not supported.", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : unit -> System.Security.Cryptography.SymmetricAlgorithm
[<System.Obsolete("The default implementation of this cryptography algorithm is not supported", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : unit -> System.Security.Cryptography.SymmetricAlgorithm
static member Create : unit -> System.Security.Cryptography.SymmetricAlgorithm
Public Shared Function Create () As SymmetricAlgorithm

Returns

A default cryptographic object used to perform the symmetric algorithm.

Attributes

Exceptions

.NET Core 2.0 - 3.1 and .NET 5 and later: In all cases.

Remarks

This method is obsolete in .NET 5 and later versions.

We recommend that you specify the algorithm by calling the Create(String) overload of this method.

See also

Applies to