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 مبنيًا خارجيًا لكل مستلم

 

استخدم AddPubKeyRecipient بعد هذا الأسلوب لكل مستلم. اضبط ActivateProtection على true قبل كتابة المستند. قيم KeyType المدعومة هي k40 وk128 وaes128؛ تشفير public-key AES-256 غير منفذ

 

انظر أيضا: AddPubKeyRecipient, CryptKeyLength, ActivateProtection, PDF Filter Support