Class Excel2007Decryptor
This class is responsible for decryption of Excel 2007 files.
Inheritance
System.Object
Excel2007Decryptor
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.XlsIO.Implementation.Security
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class Excel2007Decryptor
Constructors
Excel2007Decryptor()
Declaration
public Excel2007Decryptor()
Fields
m_arrKey
Array containing key data.
Declaration
protected byte[] m_arrKey
Field Value
Type |
---|
System.Byte[] |
m_info
Encryption info.
Declaration
protected EncryptionInfo m_info
Field Value
Type |
---|
EncryptionInfo |
Properties
Storage
Compound storage that should be decrypted.
Declaration
protected ICompoundStorage Storage { get; }
Property Value
Type |
---|
ICompoundStorage |
Methods
CheckEncrypted(ICompoundStorage)
Checks whether storage contains encrypted data.
Declaration
public static bool CheckEncrypted(ICompoundStorage storage)
Parameters
Type | Name | Description |
---|---|---|
ICompoundStorage | storage | Storage to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if storage is encrypted. |
CheckPassword(String)
Checks whether password is correct.
Declaration
public virtual bool CheckPassword(string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | password | Password to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if password verification succeeded. |
Decrypt()
Decrypts internal storage storage.
Declaration
public virtual Stream Decrypt()
Returns
Type | Description |
---|---|
System.IO.Stream | Decrypted stream. |
Initialize(ICompoundStorage)
Prepares decryptor for actual decryption.
Declaration
public void Initialize(ICompoundStorage storage)
Parameters
Type | Name | Description |
---|---|---|
ICompoundStorage | storage | Compound storage to get required data from. |