Export (0) Print
Expand All

SymmetricAlgorithm.Create Method

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

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

static member Create : unit -> SymmetricAlgorithm

Return Value

Type: System.Security.Cryptography.SymmetricAlgorithm
A default cryptographic object used to perform the symmetric algorithm.

The following code example uses the RijndaelManaged class with the specified Key property and initialization vector (IV) to encrypt a file specified by inName, and outputs the encrypted result to the file specified by outName. The desKey and desIV parameters to the method are 8-byte arrays. You must have the high encryption pack installed to run this example.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft