TemplatePackage Decrypt Method
A helper function to convert an encrypted HotDocs package stream to an unencrypted HotDocs package stream.

Namespace: HotDocs.Sdk
Assembly: HotDocs.Sdk (in HotDocs.Sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static MemoryStream Decrypt(
	MemoryStream ms,
	string rsaParamsXml
)

Return Value

Type: OnlineMemoryStream
If rsaParamsXml is null or empty or if the input stream ms is not an encrypted HotDocs package, the input stream ms is simply returned. Otherwise, the input stream ms is being copied and decrypted to the returned output stream.
See Also