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

Crypto..::..Cipher Method (String, String, String)

Cipher the text using a certificate

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

Syntax


public static string Cipher(
	string clearText,
	string certificateFile,
	string certificatePassword
)

Parameters

clearText
Type: String
the text to cypher
certificateFile
Type: String
the certificate file to use
certificatePassword
Type: String
the password for the certificate

Return Value

base 64 encoded text

Exceptions


ExceptionCondition
FileNotFoundExceptionThrown if the file is not found
CryptographicExceptionThrown if the file was bad or the password was bad
ArgumentNullExceptionThrown if any parameter is not provided