Crypto..::..Cipher Method (array<Byte>[]()[][], X509Certificate2)
Ciphers the specified clear text.
Namespace:
Walter.CypherAssembly: Walter.Cypher (in Walter.Cypher.dll)
Syntax
[ObfuscationAttribute] public static byte[] Cipher( byte[] bytes, X509Certificate2 certificate )
Parameters
- bytes
- Type: array<Byte>[]()[][]
The clear bytes.
- certificate
- Type: X509Certificate2
The certificate.
Return Value
System.Byte[].Exceptions
Exception | Condition |
---|---|
ArgumentNullException | clearText |
CryptographicException | certificate {certificate.FriendlyName} doesn't have a public key |
CryptographicException | certificate {certificate.FriendlyName} doesn't have a public key |