|
THotPDF.EnablePubKeyEncryption
|
Metode Sledeće 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);
Opis EnablePubKeyEncryption emituje /Encrypt rečnik koristeći /Filter /Adobe.PubSec. HotPDF obrađuje simetrično šifrovanje fajla i izvođenje ključa za PDF algoritam 9, dok pozivalac obezbeđuje nasumični seed i jedan spolja izgrađen PKCS#7 envelopedData blob po primaocu
Koristite AddPubKeyRecipient nakon ove metode za svakog primaoca. Postavite ActivateProtection na true pre upisa dokumenta. Podržane KeyType vrednosti su k40, k128 i aes128; AES-256 javno-ključno šifrovanje nije implementirano
See also: AddPubKeyRecipient, CryptKeyLength, ActivateProtection, PDF Filter Support |