SymmetricAlgorithm.Create Method

Definition

Creates a cryptographic object used to perform the symmetric algorithm.

Overloads

Name Description
Create()

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

Create(String)

Creates the specified cryptographic object used to perform the symmetric algorithm.

Create()

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

public:
 static System::Security::Cryptography::SymmetricAlgorithm ^ Create();
public static System.Security.Cryptography.SymmetricAlgorithm Create();
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.

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

Create(String)

Creates the specified cryptographic object used to perform the symmetric algorithm.

public:
 static System::Security::Cryptography::SymmetricAlgorithm ^ Create(System::String ^ algName);
public static System.Security.Cryptography.SymmetricAlgorithm Create(string algName);
static member Create : string -> System.Security.Cryptography.SymmetricAlgorithm
Public Shared Function Create (algName As String) As SymmetricAlgorithm

Parameters

algName
String

The name of the specific implementation of the SymmetricAlgorithm class to use.

Returns

A cryptographic object used to perform the symmetric algorithm.

See also

Applies to