EncryptionProvider.DecryptStream method (Office)
Decrypts and returns a stream of encrypted data for a document.
Syntax
expression.DecryptStream(SessionHandle, StreamName, EncryptedStream, UnencryptedStream)
expression An expression that returns an EncryptionProvider object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
SessionHandle | Required | Long | The ID of the current session. |
StreamName | Required | String | The ID of the stream of data. |
EncryptedStream | Required | IUnknown | The encrypted data stream. |
UnencryptedStream | Required | IUnknown | The data stream before dencryption. |
Remarks
This method is called by your COM add-in when the document is opened, and after your add-in has verified that the user opening the document is authenticated. This method is the inverse of the EncryptStream method and converts encrypted data back into pure (un-encrypted) data.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.