PDFKeyDerivation
Overview
PDFKeyDerivation Java için Aspose.PDF FOSS sınıfıdır.
PDF şifreleme anahtar derinlemesine algoritmalar.
Bu sınıf, Java programlarında PDFKeyDerivation nesneleri ile çalışmak için 11 yöntem sunar. Mevcut yöntemler şunları içerir: computeEncryptionKeyR2R4, computeEncryptionKeyR5Owner, computeEncryptionKeyR5User, computeEncryptionKeyR6Owner, computeEncryptionKeyR6User, computeHashR5, computeHashR6, generateO_R2R4, generateU_R2, generateU_R3R4, padPassword. Tüm kamu üyeleri, Java paket için Aspose.PDF FOSS’u yükledikten sonra herhangi bir Java uygulamasına erişilebilir. Mülkiyet : PADDING.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
PADDING | byte[] | Read | 32 bitli çubuk algorithm 2 adım (a) ile. |
Methods
| Signature | Description |
|---|---|
computeEncryptionKeyR2R4(password: byte[], encDict: PDFEncryptionDict, documentId: byte[]) → byte[] | 2. Algoritma: R2-R4 için şifreleme anahtarını hesaplayın. |
computeEncryptionKeyR6User(password: byte[], encDict: PDFEncryptionDict) → byte[] | Şifreleme anahtarı R = 5 / R= 6 (AES-256) için hesaplanır. |
computeEncryptionKeyR6Owner(password: byte[], encDict: PDFEncryptionDict) → byte[] | R=6 için şifreleme anahtarını sahibinin şifresi ile hesaplayın. |
computeHashR5(password: byte[], salt: byte[], userKey: byte[]) → byte[] | R=5 (Adobe Extension Level 3) hash: tek bir SHA-256 {@code password + salt [+ userKey]}, NO algoritma 2.B iterasyon ile. |
computeEncryptionKeyR5User(password: byte[], encDict: PDFEncryptionDict) → byte[] | Dosya şifreleme anahtarını R=5 için kullanıcı şifresi aracılığıyla oluşturun (Adobe Extension Level 3 — tek SHA-256, iterasyon yok). |
computeEncryptionKeyR5Owner(password: byte[], encDict: PDFEncryptionDict) → byte[] | Dosya şifreleme anahtarını R=5 için sahip parolayı kullanarak oluşturun (Adobe Extension Level 3 - tek SHA-256, iterasyon yok). |
generateO_R2R4(ownerPassword: byte[], userPassword: byte[], keyLenBytes: int, R: int) → byte[] | 3 algoritma (ISO 32000-1:2008, §7.6.3.4) : /O (mülkiyet) hashini hesaplar. |
generateU_R2(encryptionKey: byte[]) → byte[] | 4 algoritması (ISO 32000-1:2008, §7.6.3.4) : /U hashını R=2 için hesaplar. |
generateU_R3R4(encryptionKey: byte[], documentId: byte[]) → byte[] | 5 algoritma (ISO 32000-1:2008, §7.6.3.4) : /U hashını R=3/4. olarak hesaplar. |
padPassword(password: byte[]) → byte[] | Bir şifreyi tam olarak 32 byteye kadar kaydırır veya çarpmaz. |
computeHashR6(password: byte[], salt: byte[], userKey: byte[]) → byte[] | R = 6 doğrulama veya anahtar kaynak hash (ISO 32000-2, algoritma 2.B) hesaplanır. |