Method for automatically encrypting and decrypting PDF (Portable Document Format) document
Through the automated encryption and decryption method based on certificates, PDF files are encrypted and decrypted, solving the problems of low security and inconvenient management of existing PDF password encryption methods, and achieving higher file confidentiality and integrity.
Patent Information
- Application Number
- CN202411747478.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-03-25
AI Technical Summary
The existing PDF password encryption methods have problems such as low security, easy password cracking, and inconvenient management, and cannot effectively protect the confidentiality and integrity of the files.
The automated encryption and decryption method based on certificates is adopted to obtain the public key in the encryption certificate, randomly generate seed values, use RSA encryption to generate ciphertext, splice and generate digest, hash operation to generate passwords, and AES encryption is performed on the stream data in the PDF cross-index table, and the public key and password digits used for encryption are stored in the PDF Root dictionary. The decryption process is the opposite. By obtaining the private key of the certificate, decrypting and generating plaintext, splicing and generating digest, hashing operations to generate passwords, and AES decryption of the stream data in the PDF cross-index table.
It realizes secure encryption and decryption of PDF files, ensures the confidentiality and integrity of the files, avoids the problem of passwords being easily cracked and inconveniently managed, and provides higher security.