|
THotPDF.EnablePubKeyEncryption
|
Metoder Nästa 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);
Beskrivning EnablePubKeyEncryption skriver en /Encrypt-ordbok med /Filter /Adobe.PubSec. HotPDF hanterar den symmetriska filkrypteringen och nyckelhärledningen enligt PDF-algoritm 9, medan anroparen tillhandahåller slumpmässigt seed och en externt byggd PKCS#7 envelopedData-blob per mottagare
Använd AddPubKeyRecipient efter den här metoden för varje mottagare. Sätt ActivateProtection till true innan dokumentet skrivs. De KeyType-värden som stöds är k40, k128 och aes128; AES-256-kryptering med publik nyckel är inte implementerad
Se även: AddPubKeyRecipient, CryptKeyLength, ActivateProtection, PDF Filter Support |