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 המשתמש ב-/Filter /Adobe.PubSec. ‏HotPDF מטפלת בהצפנת הקובץ הסימטרית ובגזירת מפתח לפי PDF algorithm 9, בעוד הקורא מספק seed אקראי ו-blob חיצוני אחד של PKCS#7 envelopedData לכל recipient

 

השתמש ב-AddPubKeyRecipient אחרי מתודה זו עבור כל recipient. הגדר ActivateProtection ל-true לפני כתיבת המסמך. ערכי KeyType הנתמכים הם k40, ‏k128 ו-aes128; הצפנת public-key מסוג AES-256 אינה ממומשת

 

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