Creates a symmetric encryptor object with the current SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).
A symmetric encryptor object.
If the current SymmetricAlgorithm.Key property is null, the SymmetricAlgorithm.GenerateKey method is called to create a new random SymmetricAlgorithm.Key. If the current SymmetricAlgorithm.IV property is null, the SymmetricAlgorithm.GenerateIV method is called to create a new random SymmetricAlgorithm.IV.
Use the SymmetricAlgorithm.CreateDecryptor overload with the same signature to decrypt the result of this method.