alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MD5Decryptor

    Represents an MD5Decryptor.

    Inheritance
    object
    MD5Decryptor
    Implements
    IDecryptor
    IEncryptor
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.XlsIO.Implementation.Security
    Assembly: Syncfusion.XlsIO.NET.dll
    Syntax
    [CLSCompliant(false)]
    public class MD5Decryptor : IDecryptor, IEncryptor

    Constructors

    MD5Decryptor()

    Initializes a new instance of the MD5Decryptor class.

    Declaration
    public MD5Decryptor()

    Methods

    CheckPassword(string)

    Checks the password.

    Declaration
    public bool CheckPassword(string password)
    Parameters
    Type Name Description
    string password

    The password.

    Returns
    Type
    bool

    Decrypt(DataProvider, int, int, long)

    Decrypts data provider and writes data back into it.

    Declaration
    public void Decrypt(DataProvider provider, int offset, int length, long streamPos)
    Parameters
    Type Name Description
    DataProvider provider

    Provider to decrypt.

    int offset

    Offset to the data.

    int length

    Size of the data to decrypt.

    long streamPos

    Record position in the stream position.

    Decrypt(byte[], int, int)

    Decrypts buffer and puts resulting data back into it.

    Declaration
    public void Decrypt(byte[] buffer, int offset, int length)
    Parameters
    Type Name Description
    byte[] buffer

    Buffer to decrypt.

    int offset

    Offset to the data.

    int length

    Size of the data to decrypt.

    Decrypt(Stream)

    Decrypts the stream.

    Declaration
    public MemoryStream Decrypt(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The stream.

    Returns
    Type
    MemoryStream

    Encrypt(DataProvider, int, int, long)

    Encrypts DataProvider and writes result back into it.

    Declaration
    public 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
    public 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
    public FilePassRecord GetFilePassRecord()
    Returns
    Type Description
    FilePassRecord

    Created record.

    SetDecryptionInfo(byte[], byte[], byte[], string)

    Sets information required to decrypt.

    Declaration
    public 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
    bool

    SetEncryptionInfo(byte[], string)

    Sets information required to encrypt the document.

    Declaration
    public void SetEncryptionInfo(byte[] docId, string password)
    Parameters
    Type Name Description
    byte[] docId

    Unique document id.

    string password

    Encryption password.

    Implements

    IDecryptor
    IEncryptor
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved