Interface IDecryptor
Summary description for IEncryptor.
Namespace: Syncfusion.XlsIO.Implementation.Security
Assembly: Syncfusion.XlsIO.Portable.dll
Syntax
public interface IDecryptor
Methods
Decrypt(DataProvider, Int32, Int32, Int64)
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. |
System.Int32 | offset | Offset to the first byte to decrypt. |
System.Int32 | length | Number of bytes to decrypt. |
System.Int64 | streamPosition | Position of the record in the stream. |
Decrypt(Byte[], Int32, Int32)
Decrypts byte array and writes result back into it.
Declaration
void Decrypt(byte[] buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | Array to decrypt. |
System.Int32 | offset | Offset to the first byte to decrypt. |
System.Int32 | 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 |
---|---|---|
System.Byte[] | docId | Unique document id. |
System.Byte[] | encryptedDocId | Encrypted document id. |
System.Byte[] | digest | Digest used to verify the entered password. |
System.String | password | Password to use for verification and decryption. |
Returns
Type | Description |
---|---|
System.Boolean | True if password was verified and method succeeded. |