|
THotPDF.CryptKeyLength
|
Вгору Попередня Наступна |
|
Determines PDF file encryption method.
type THPDFKeyType = ( k40, k128, aes128, aes256 );
Delphi syntax: property CryptKeyLength: THPDFKeyType;
C++ syntax: __property THPDFKeyType CryptKeyLength;
Опис Використовуйте CryptKeyLength, щоб вибрати standard security handler revision і cipher, used when ActivateProtection enabled
Value Meaning k40 Standard security handler V=1, R=2, RC4 with a 40-bit key (PDF 1.1+). k128 Standard security handler V=2, R=3, RC4 with a 128-bit key (PDF 1.4+). aes128 Standard security handler V=4, R=4 with crypt filter aes256 Standard security handler V=5 with crypt filter
Public-Key Security Handler (PDF 1.7 7.6.5) Для certificate-based encryption викликайте EnablePubKeyEncryption(seed, KeyType, EncryptMetadata) замість setting UserPassword / OwnerPassword Ті самі values CryptKeyLength застосовуються до symmetric cipher: k40 -> RC4-40, k128 -> RC4-128, aes128 -> AES-128 Caller має build one PKCS#7 envelopedData blob per recipient
Code Example
See also: ActivateProtection, OwnerPassword, ProtectOptions, UserPassword
|