WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

Crypto..::..Cipher Method (array<Byte>[]()[][], X509Certificate2)

Ciphers the specified clear text.

Namespace:  Walter.Cypher
Assembly:  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


ExceptionCondition
ArgumentNullExceptionclearText
CryptographicExceptioncertificate {certificate.FriendlyName} doesn't have a public key
CryptographicExceptioncertificate {certificate.FriendlyName} doesn't have a public key