|
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 المستخدمين عند تفعيل ActivateProtection
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) للتشفير المعتمد على الشهادات، مستند واحد وعدة مستلمين، استدع EnablePubKeyEncryption(seed, KeyType, EncryptMetadata) بدل ضبط UserPassword / OwnerPassword. تنطبق قيم CryptKeyLength نفسها على symmetric cipher، ويجب أن يبني المستدعي blob PKCS#7 envelopedData واحدًا لكل مستلم ويضيفه عبر AddPubKeyRecipient؛ يشتق مفتاح تشفير الملف عبر algorithm 9
Code Example
انظر أيضا: ActivateProtection, OwnerPassword, ProtectOptions, UserPassword
|