THotPDF.EnablePubKeyEncryption

THotPDF

 

메서드  다음  CryptKeyLength

Switches document encryption to the PDF public-key security handler.

 

Delphi 구문:

procedure EnablePubKeyEncryption(const Seed: AnsiString; KeyType: THPDFKeyType = aes128; EncryptMetadata: Boolean = true);

 

C++ 구문:

void __fastcall EnablePubKeyEncryption(System::AnsiString Seed, THPDFKeyType KeyType, bool EncryptMetadata);

 

설명

EnablePubKeyEncryption/Filter /Adobe.PubSec를 사용하는 /Encrypt dictionary를 emit합니다. HotPDF는 symmetric file encryption 및 PDF algorithm 9 key derivation을 처리하고, caller는 random seed와 recipient당 외부에서 build한 PKCS#7 envelopedData blob 하나를 제공합니다

 

각 recipient에 대해 이 method 뒤에 AddPubKeyRecipient를 사용하십시오. Document를 쓰기 전에 ActivateProtection을 true로 설정하십시오. 지원되는 KeyType 값은 k40, k128, aes128입니다. AES-256 public-key encryption은 구현되어 있지 않습니다

 

참조: AddPubKeyRecipient, CryptKeyLength, ActivateProtection, PDF Filter Support