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

BytesExtension..::..AsDecryptFromBytes Method (array<Byte>[]()[][], X509Certificate2)

decrypt using a password and protection level that was previously encrypted using extension method AsEncryptedBytes(String)

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

Syntax


[FeatureTagsAttribute]
[NotNullAttribute]
public static byte[] AsDecryptFromBytes(
	this byte[] cypherBytes,
	X509Certificate2 certificate
)

Parameters

cypherBytes
Type: array<Byte>[]()[][]
cypherBytes text to decrypt
certificate
Type: X509Certificate2
the certificate2 to use

Return Value

deciphered bytes

Exceptions


ExceptionCondition
CryptographicExceptionIf no private key is in the certificate

Remarks


Please set return value to null when no longer needed to avoid leaking confidential data in garbage collection