THotPDF.EnablePubKeyEncryption

THotPDF

 

Métodos  Siguiente  CryptKeyLength

Switches document encryption to the PDF public-key security handler.

 

Sintaxis Delphi:

procedure EnablePubKeyEncryption(const Seed: AnsiString; KeyType: THPDFKeyType = aes128; EncryptMetadata: Boolean = true);

 

Sintaxis C++:

void __fastcall EnablePubKeyEncryption(System::AnsiString Seed, THPDFKeyType KeyType, bool EncryptMetadata);

 

Descripción

EnablePubKeyEncryption emite un diccionario /Encrypt usando /Filter /Adobe.PubSec. HotPDF gestiona el cifrado simétrico del archivo y la derivación de clave del algoritmo PDF 9, mientras que el llamador proporciona la semilla aleatoria y un blob PKCS#7 envelopedData construido externamente por cada destinatario

 

Utilice AddPubKeyRecipient después de este método para cada destinatario. Establezca ActivateProtection en true antes de escribir el documento. Los valores KeyType admitidos son k40, k128 y aes128; el cifrado de clave pública AES-256 no está implementado

 

Véase también: AddPubKeyRecipient, CryptKeyLength, ActivateProtection, Soporte de filtros PDF