Crypto..::..Zip Method (String, X509Certificate2)
Zips the specified clear text using the certificate's public key to encrypt.
Namespace:
Walter.CypherAssembly: Walter.Cypher (in Walter.Cypher.dll)
Syntax
public static string Zip( string clearText, X509Certificate2 certificate )
Return Value
System.String.Exceptions
Exception | Condition |
---|---|
ArgumentException | no string to compress was found - clearText |
ArgumentNullException | certificate |