CryptoStringExtensions..::..Encrypt Method (array<Byte>[]()[][], X509Certificate2, RSAEncryptionPadding)
Encrypts the specified certificate.
Namespace:
SystemAssembly: Walter.Cypher (in Walter.Cypher.dll)
Syntax
public static byte[] Encrypt( this byte[] bytes, X509Certificate2 certificate, RSAEncryptionPadding padding )
Parameters
- bytes
- Type: array<Byte>[]()[][]
The bytes.
- certificate
- Type: X509Certificate2
The certificate.
- padding
- Type: RSAEncryptionPadding
The padding.
Return Value
System.Byte[].Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | certificate |
| ArgumentNullException | padding |
| ArgumentNullException | bytes |

