THotPDF.EnablePubKeyEncryption

THotPDF

 

Методи  Следваща  CryptKeyLength

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

 

Delphi syntax:

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

 

C++ syntax:

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

 

Описание

EnablePubKeyEncryption излъчва /Encrypt dictionary с /Filter /Adobe.PubSec. HotPDF поема симетричното файлово криптиране и PDF algorithm 9 key derivation, а извикващият подава random seed и по един външно изграден PKCS#7 envelopedData blob за всеки получател

 

Използвайте AddPubKeyRecipient след този метод за всеки получател. Задайте ActivateProtection на true преди записване на документа. Поддържаните стойности на KeyType

са k40, k128 и aes128; AES-256 public-key encryption не е имплементирано[[TAG6]][[TAG7]]

 

See also: AddPubKeyRecipient, CryptKeyLength, ActivateProtection, PDF Filter Support