THotPDF.EnablePubKeyEncryption

THotPDF

 

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

 

Aprašas

EnablePubKeyEncryption sukuria /Encrypt žodyną su /Filter /Adobe.PubSec. HotPDF tvarko simetrinį failo šifravimą ir PDF algoritmo 9 raktų išvedimą, o iškvietėjas pateikia atsitiktinį „seed“ ir vieną išorinį PKCS#7 envelopedData duomenų gabalą kiekvienam gavėjui

 

Naudokite AddPubKeyRecipient po šio metodo kiekvienam gavėjui. Prieš rašydami dokumentą nustatykite ActivateProtection į true. Palaikomos KeyType reikšmės yra k40, k128 ir aes128; AES-256 viešojo rakto šifravimas neįgyvendintas

 

See also: AddPubKeyRecipient, CryptKeyLength, ActivateProtection, PDF Filter Support