CreateEncryptor Method
Collapse the table of content
Expand the table of content

SymmetricAlgorithm.CreateEncryptor Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a symmetric encryptor object with the current Key property and initialization vector (IV).

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

'Declaration
Public Overridable Function CreateEncryptor As ICryptoTransform

Return Value

Type: System.Security.Cryptography.ICryptoTransform
A symmetric encryptor object.

If the current Key property is Nothing, the GenerateKey method is called to create a new random Key. If the current IV property is Nothing, the GenerateIV method is called to create a new random IV.

Use the CreateDecryptor overload with the same signature to decrypt the result of this method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft