Creates a symmetric encryptor object with the specified Key.
[Visual Basic]
Overrides Overloads Public Function CreateEncryptor( _
ByVal rgbKey As Byte(), _
ByVal rgbIV As Byte() _
) As ICryptoTransform
A symmetric encryptor object.
Use the CreateDecryptor overload with the same parameters to decrypt the result of this method.
Exception Type | Condition |
---|---|
ObjectDisposedException | The object is disposed. |
ArgumentNullException | rgbKey is a null reference (Nothing in Visual Basic). |
CryptographicException |
RC4CryptoServiceProvider Class | RC4CryptoServiceProvider Members | Org.Mentalis.Security.Cryptography Namespace | RC4CryptoServiceProvider.CreateEncryptor Overload List