|
THotPDF.EnablePubKeyEncryption
|
メソッド 次へ 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 は /Filter /Adobe.PubSec を使用する /Encrypt 辞書を出力します。HotPDF は対称ファイル暗号化と PDF algorithm 9 の key derivation を処理し、呼び出し元は random seed と、受信者ごとに外部で構築した PKCS#7 envelopedData blob を提供します
このメソッドの後で各受信者について AddPubKeyRecipient を使用します。ドキュメントを書き込む前に ActivateProtection を true に設定してください。サポートされる KeyType 値は k40、k128、aes128 です。AES-256 public-key encryption は実装されていません
関連項目: AddPubKeyRecipient, CryptKeyLength, ActivateProtection, PDF Filter Support |