SymmetricAlgorithm: CreateEncryptor |
When implemented by a class, creates a symmetric encryptor object with the specified Key property and initialization vector (IV).
Public Function CreateEncryptor( Optional ByRef RgbKey As Variant, Optional ByRef RgbIV As Variant ) As ICryptoTransform
Use the CreateDecryptor overload with the same parameters to decrypt the result of this method.
Exception | Condition |
---|---|
ArgumentException | Only RgbKey or RgbIV was specified. |