A helper function to convert an unencrypted HotDocs package stream to an encrypted HotDocs package stream.
Namespace: HotDocs.SdkAssembly: HotDocs.Sdk (in HotDocs.Sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- ms
- Type:
System.IO MemoryStream
The unencrypted HotDocs package file/stream.
- rsaParamsXml
- Type:
System String
RSA key serialized to XML.
Return Value
Type:
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