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

Crypto..::..Zip Method (String, X509Certificate2)

Zips the specified clear text using the certificate's public key to encrypt.

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

Syntax


public static string Zip(
	string clearText,
	X509Certificate2 certificate
)

Parameters

clearText
Type: String
The clear text.
certificate
Type: X509Certificate2
The certificate.

Return Value

System.String.

Exceptions


ExceptionCondition
ArgumentExceptionno string to compress was found - clearText
ArgumentNullExceptioncertificate