SecureBlackbox 2020 .NET Edition

Questions / Feedback?

ExternalDecrypt Event

Handles remote or external decryption.

Syntax

public event OnExternalDecryptHandler OnExternalDecrypt;

public delegate void OnExternalDecryptHandler(object sender, PdfdecryptorExternalDecryptEventArgs e);

public class PdfdecryptorExternalDecryptEventArgs : EventArgs {
  public string OperationId { get; }
  public string Algorithm { get; }
  public string Pars { get; }
  public string EncryptedData { get; }
  public string Data { get; set; }
}
Public Event OnExternalDecrypt As OnExternalDecryptHandler

Public Delegate Sub OnExternalDecryptHandler(sender As Object, e As PdfdecryptorExternalDecryptEventArgs)

Public Class PdfdecryptorExternalDecryptEventArgs Inherits EventArgs
  Public ReadOnly Property OperationId As String
  Public ReadOnly Property Algorithm As String
  Public ReadOnly Property Pars As String
  Public ReadOnly Property EncryptedData As String
  Public Property Data As String
End Class

Remarks

Assign a handler to this event if you need to delegate a low-level decryption operation to an external, remote, or custom decryption engine. The handler receives a encrypted value in the EncryptedData parameter, and is expected to decrypt it and place the decrypted value into the Data parameter.

OperationId provides a comment about the operation and its origin. It depends on the exact component being used, and may be empty. Algorithm specifies the encryption algorithm being used, and Pars contain algorithm-dependent parameters.

The component uses base16 (hex) encoding for EncryptedData, Data, and Pars parameters. If your decryption engine uses a different input and output encoding, you may need to decode and/or encode the data before and/or after the decryption.

A sample data encoded in base16: a0dee2a0382afbb09120ffa7ccd8a152 - lower case base16 A0DEE2A0382AFBB09120FFA7CCD8A152 - upper case base16

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 .NET Edition - Version 20.0 [Build 8165]