Interface IDecryptor
Summary description for IEncryptor.
Namespace: Syncfusion.XlsIO.Implementation.Security
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public interface IDecryptor
Methods
Decrypt(DataProvider, int, int, long)
Decrypts DataProvider and writes result back into it.
Declaration
void Decrypt(DataProvider provider, int offset, int length, long streamPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| DataProvider | provider | Provider to decrypt. |
| int | offset | Offset to the first byte to decrypt. |
| int | length | Number of bytes to decrypt. |
| long | streamPosition | Position of the record in the stream. |
Decrypt(byte[], int, int)
Decrypts byte array and writes result back into it.
Declaration
void Decrypt(byte[] buffer, int offset, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | buffer | Array to decrypt. |
| int | offset | Offset to the first byte to decrypt. |
| int | length | Number of bytes to decrypt. |
SetDecryptionInfo(byte[], byte[], byte[], string)
Sets information required to decrypt.
Declaration
bool SetDecryptionInfo(byte[] docId, byte[] encryptedDocId, byte[] digest, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | docId | Unique document id. |
| byte[] | encryptedDocId | Encrypted document id. |
| byte[] | digest | Digest used to verify the entered password. |
| string | password | Password to use for verification and decryption. |
Returns
| Type | Description |
|---|---|
| bool | True if password was verified and method succeeded. |