TemplatePackage Encrypt Method
A helper function to convert an unencrypted HotDocs package stream to an encrypted 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 Encrypt(
	MemoryStream ms,
	string rsaParamsXml
)

Return Value

Type: OnlineMemoryStream
If rsaParamsXml is null or empty, the input stream ms is simply returned. Otherwise, the input stream ms is being copied and encrypted to the returned output stream. The output stream will contain a 4 byte signature at the beginning identifying it as a HotDocs package followed by encrypted AES keys and the encrypted data.
See Also