THotPDF.EnablePubKeyEncryption

THotPDF

 

Metody  Następny  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);

 

Opis

EnablePubKeyEncryption emituje słownik /Encrypt z użyciem /Filter /Adobe.PubSec. HotPDF obsługuje symetryczne szyfrowanie pliku i wyprowadzanie klucza według algorytmu PDF 9, a wywołujący dostarcza losowy seed i jeden zewnętrznie zbudowany blob PKCS#7 envelopedData dla każdego odbiorcy

 

Użyj AddPubKeyRecipient po tej metodzie dla każdego odbiorcy. Ustaw ActivateProtection na true przed zapisaniem dokumentu. Obsługiwane wartości KeyType to k40, k128 i aes128; szyfrowanie public-key AES-256 nie jest zaimplementowane

 

Zobacz też: AddPubKeyRecipient, CryptKeyLength, ActivateProtection, PDF Filter Support