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).
Assembly: mscorlib (in mscorlib.dll)
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.