menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MD5Decryptor - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MD5Decryptor

    Represents an MD5Decryptor.

    Inheritance
    System.Object
    MD5Decryptor
    Implements
    IDecryptor
    IEncryptor
    Namespace: Syncfusion.XlsIO.Implementation.Security
    Assembly: Syncfusion.XlsIO.Portable.dll
    Syntax
    public class MD5Decryptor : Object, 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
    System.String password

    The password.

    Returns
    Type
    System.Boolean

    Decrypt(DataProvider, Int32, Int32, Int64)

    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.

    System.Int32 offset

    Offset to the data.

    System.Int32 length

    Size of the data to decrypt.

    System.Int64 streamPos

    Record position in the stream position.

    Decrypt(Byte[], Int32, Int32)

    Decrypts buffer and puts resulting data back into it.

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

    Buffer to decrypt.

    System.Int32 offset

    Offset to the data.

    System.Int32 length

    Size of the data to decrypt.

    Decrypt(Stream)

    Decrypts the stream.

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

    The stream.

    Returns
    Type
    System.IO.MemoryStream

    Encrypt(DataProvider, Int32, Int32, Int64)

    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.

    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
    public 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
    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
    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
    System.Boolean

    SetEncryptionInfo(Byte[], String)

    Sets information required to encrypt the document.

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

    Unique document id.

    System.String password

    Encryption password.

    Implements

    IDecryptor
    IEncryptor
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved