THotPDF.EnablePubKeyEncryption

THotPDF

 

Methods  Next  CryptKeyLength

문서 암호화를 PDF 공개 키 보안 핸들러로 전환합니다.

 

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);

 

Description

EnablePubKeyEncryption은 /Encrypt 딕셔너리를 출력하며, 이때 /Filter /Adobe.PubSec을 사용하고 정확히 20바이트인 임의 seed와 순서가 있는 수신자 엔벨로프로부터 파일 암호화 키를 도출합니다

 

PDF 2.0 출력에는 aes256을 사용하며, 이때 /V 5, /CFM /AESV3, 256비트 crypt-filter 키, /SubFilter /adbe.pkcs7.s5가 사용됩니다

 

Add recipients with AddPubKeyRecipientCertificate, AddPubKeyAgreementRecipient, or the lower-level AddPubKeyRecipient method before writing the document

 

See also: AddPubKeyRecipient, CryptKeyLength, PDF Filter Support