RC2.Create Method (String)

 

Creates an instance of a cryptographic object to perform the specified implementation of the RC2 algorithm.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

static member Create : 
        AlgName:string -> RC2

Parameters

AlgName
Type: System.String

The name of the specific implementation of RC2 to use.

Return Value

Type: System.Security.Cryptography.RC2

An instance of a cryptographic object.

Exception Condition
TargetInvocationException

The algorithm described by the algName parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.

Use this method to create an instance of the RC2 class that you can use to encrypt and decrypt data.

The following example shows how to create and use an RC2 object to encrypt and decrypt data in a file.

No code example is currently available or this language may not be supported.

The following example shows how to create and use an RC2 object to encrypt and decrypt data in memory.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: