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

CryptoStringExtensions..::..Encrypt Method (String, X509Certificate2, RSAEncryptionPadding)

Encrypts the specified certificate.

Namespace:  System
Assembly:  Walter.Cypher (in Walter.Cypher.dll)

Syntax


public static string Encrypt(
	this string text,
	X509Certificate2 certificate,
	RSAEncryptionPadding padding
)

Parameters

text
Type: String
The text.
certificate
Type: X509Certificate2
The certificate.
padding
Type: RSAEncryptionPadding
The padding.

Return Value

System.String.

Exceptions


ExceptionCondition
ArgumentNullExceptionpadding