Interface IEncryptor
Summary description for IEncryptor.
Namespace: Syncfusion.XlsIO.Implementation.Security
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public interface IEncryptor
Methods
Encrypt(DataProvider, int, int, long)
Encrypts DataProvider and writes result back into it.
Declaration
void Encrypt(DataProvider provider, int offset, int length, long streamPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| DataProvider | provider | Provider to encrypt. |
| int | offset | Offset to the first byte to encrypt. |
| int | length | Number of bytes to encrypt. |
| long | streamPosition | Position of the data in the stream. |
Encrypt(byte[], int, int, long)
Encrypts DataProvider and writes result back into it.
Declaration
void Encrypt(byte[] data, int offset, int length, long streamPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | data | Data to encrypt. |
| int | offset | Offset to the first byte to encrypt. |
| int | length | Number of bytes to encrypt. |
| long | streamPosition | Position of the data in the stream. |
GetFilePassRecord()
Creates FilPassRecord that corresponds to this document. This method can only be called after encryption info was set.
Declaration
FilePassRecord GetFilePassRecord()
Returns
| Type | Description |
|---|---|
| FilePassRecord | Created record. |
SetEncryptionInfo(byte[], string)
Sets information required to encrypt the document.
Declaration
void SetEncryptionInfo(byte[] docId, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | docId | Unique document id. |
| string | password | Encryption password. |