Interface IEncryptor
Summary description for IEncryptor.
Namespace: Syncfusion.XlsIO.Implementation.Security
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public interface IEncryptor
Methods
Encrypt(DataProvider, Int32, Int32, Int64)
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. |
System.Int32 | offset | Offset to the first byte to encrypt. |
System.Int32 | length | Number of bytes to encrypt. |
System.Int64 | streamPosition | Position of the data in the stream. |
Encrypt(Byte[], Int32, Int32, Int64)
Encrypts DataProvider and writes result back into it.
Declaration
void Encrypt(byte[] data, int offset, int length, long streamPosition)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | Data to encrypt. |
System.Int32 | offset | Offset to the first byte to encrypt. |
System.Int32 | length | Number of bytes to encrypt. |
System.Int64 | 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 |
---|---|---|
System.Byte[] | docId | Unique document id. |
System.String | password | Encryption password. |