Logo white

OpenSystemsDevelopment / qpdf

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 4,691
  • Compare
  • Branches 1
  • Tags 0
  • qpdf
  • libqpdf
  • QPDF_encryption.cc
10 Jan, 2026
1 commit
  • Spell check
    37941a35
    Jay Berkenbilt authored
    2026-01-10 13:26:26 -0500  
    Browse File »

01 Dec, 2025
1 commit
  • Add `inspection_mode` for optional restricted PDF inspection ...
    675777bb
    Introduce `qpdf::global::inspection_mode` for analyzing and repairing damaged PDFs with a restricted feature set. Update relevant code to enforce restrictions and add supporting test cases.
    m-holger authored
    2025-12-01 12:11:56 +0000  
    Browse File »

31 Oct, 2025
1 commit
  • Refactor `QPDF` type conversion helpers: relocate methods to `qpdf::Doc::Common`… ...
    8ded7ff5
    …, replace direct calls with `QIntC` equivalents, and clean up `QPDF.hh`.
    m-holger authored
    2025-10-31 12:59:35 +0000  
    Browse File »

15 Oct, 2025
3 commits
  • Refactor `Config` and related methods: rename `provided_password_is_hex_key` and… ...
    26edf767
    … `attempt_recovery` to `password_is_hex_key` and `suppress_recovery` to align with the CLI, update usage across the codebase, and streamline related logic.
    m-holger authored
    2025-10-15 22:35:09 +0100  
    Browse File »
  • Refactor `Config` interface: add accessor and mutator methods for configuration … ...
    b520c150
    …fields, replace direct member access across the codebase, and streamline related logic.
    m-holger authored
    2025-10-15 20:45:02 +0100  
    Browse File »
  • Refactor `QPDF` configuration: encapsulate related fields in `Doc::Config`, upda… ...
    49010866
    …te usage throughout the codebase, and streamline configurations.
    m-holger authored
    2025-10-15 19:10:45 +0100  
    Browse File »

13 Oct, 2025
1 commit
  • Refactor `QPDF`: move warnings and damaged PDF handling logic to `Common` class,… ...
    cc9facdb
    … streamline error handling, and improve encapsulation.
    m-holger authored
    2025-10-13 13:40:34 +0100  
    Browse File »

05 Oct, 2025
1 commit
  • Refactor `QPDF::EncryptionData`: move to private `QPDF::Doc::Encryption` and update references.
    d6ce922e
    m-holger authored
    2025-10-05 12:46:17 +0100  
    Browse File »

21 Sep, 2025
1 commit
  • Refactor `assert_debug.h` to add new debug assertion aliases and update include … ...
    18b26a2b
    …directives across modules to improve clarity and enforce better assertion practices.
    m-holger authored
    2025-09-21 14:06:01 +0100  
    Browse File »

07 Sep, 2025
3 commits
  • Refactor `QPDF_encryption::decryptStream`: streamline handling of `/Type` and `/… ...
    78fc0d1b
    …DecodeParms` using `Name`, `Dictionary`, and `Array` for improved clarity and consistency, and remove unused test coverage entries.
    m-holger authored
    2025-09-07 12:38:35 +0100  
    Browse File »
  • Refactor `QPDF_encryption`: replace `getKey` and `getName` with `Name` and opera… ...
    c5efd0c3
    …tor[] for improved clarity and consistency, and remove unused test coverage entries.
    m-holger authored
    2025-09-07 12:38:35 +0100  
    Browse File »
  • Refactor `EncryptionParameters::interpretCF`: replace `QPDFObjectHandle` with `N… ...
    974bc7cf
    …ame` for improved clarity and consistency, and simplify `/Identity` handling.
    m-holger authored
    2025-09-07 12:38:35 +0100  
    Browse File »

31 Aug, 2025
1 commit
  • Refactor: replace `isNull` calls with `null` in `QPDF` and remove redundant `QTC::TC` calls.
    fe92a61d
    m-holger authored
    2025-08-31 13:47:15 +0100  
    Browse File »

09 Aug, 2025
1 commit
  • Refactor: replace `getArrayNItems` with `size`, simplify array traversal, centra… ...
    eee05a0c
    …lize type conversions, and improve clarity across multiple modules.
    m-holger authored
    2025-08-09 17:26:32 +0100  
    Browse File »

19 Jul, 2025
1 commit
  • Refactor `Pl_AES_PDF` and `Pl_RC4` constructors to simplify key handling ...
    9faffb74
    Replaced raw key pointer and length parameters with a `std::string` in `Pl_AES_PDF` and `Pl_RC4` constructors for improved safety and clarity. Updated all usage sites accordingly, reducing reliance on manual memory management and redundant conversions.
    m-holger authored
    2025-07-19 19:43:33 +0100  
    Browse File »

09 Jul, 2025
15 commits
  • Refactor `QPDF_encryption` and `RC4` to replace raw arrays with `std::string`, c… ...
    04cc9df2
    …onsolidate `iterate_rc4` logic, and streamline RC4 key processing.
    m-holger authored
    2025-07-09 17:46:09 +0100  
    Browse File »
  • Refactor `QPDF_encryption` and `MD5` to streamline digest handling, replace raw … ...
    e81abdcc
    …arrays with `std::string`, and simplify key computation logic.
    m-holger authored
    2025-07-09 16:02:40 +0100  
    Browse File »
  • Refactor `QPDF_encryption` to inline `truncate_password_V5`, replace it with dir… ...
    0d68cd73
    …ect `substr` calls, and simplify password handling logic.
    m-holger authored
    2025-07-09 14:49:10 +0100  
    Browse File »
  • Refactor `compute_O_rc4_key` to return `std::string`, replace raw character arra… ...
    e623caf2
    …ys with `std::string`, and simplify related password handling logic.
    m-holger authored
    2025-07-09 14:48:39 +0100  
    Browse File »
  • Refactor `QPDF_encryption` to replace raw character arrays with `std::string`, s… ...
    aab00a1a
    …implify padding logic, and streamline password handling across methods.
    m-holger authored
    2025-07-09 14:40:59 +0100  
    Browse File »
  • Refactor encryption handling to streamline key computation, centralize version-b… ...
    20c2f021
    …ased logic in `setEncryptionMinimumVersion`, and reduce redundancy across `QPDFWriter` methods.
    m-holger authored
    2025-07-09 14:23:36 +0100  
    Browse File »
  • Refactor encryption permissions handling to replace `std::set` with `std::bitset… ...
    2055837e
    …`, simplify method signatures, and centralize logic in `QPDF::EncryptionData` for improved maintainability.
    m-holger authored
    2025-07-09 14:18:34 +0100  
    Browse File »
  • Refactor encryption data methods to reduce redundancy, streamline parameter hand… ...
    c8fd2f9b
    …ling, and improve maintainability.
    m-holger authored
    2025-07-09 14:17:59 +0100  
    Browse File »
  • Remove redundant `compute_U_UE_value_V5`, `compute_O_OE_value_V5`, and `compute_… ...
    4635a59e
    …Perms_value_V5` methods; inline their logic into `setV5EncryptionParameters` to simplify encryption data processing.
    m-holger authored
    2025-07-09 14:17:53 +0100  
    Browse File »
  • Refactor `QPDF_encryption` to simplify random string generation using `util::ran… ...
    11266b14
    …dom_string`, improve readability of salts and keys handling, and streamline `compute_Perms_value_V5_clear` logic by returning strings directly.
    m-holger authored
    2025-07-09 14:17:45 +0100  
    Browse File »
  • Refactor encryption permissions handling by replacing integer-based logic with `… ...
    8417be17
    …std::bitset`, reorganizing related methods, and simplifying access to improve clarity and maintainability.
    m-holger authored
    2025-07-09 14:17:35 +0100  
    Browse File »
  • Refactor `QPDF::isEncrypted` methods to simplify logic, reduce redundancy, and d… ...
    34142a6c
    …irectly access encryption parameters for improved clarity and maintainability.
    m-holger authored
    2025-07-09 14:17:27 +0100  
    Browse File »
  • Refactor `EncryptionParameters` to encapsulate crypt filter interpretation logic… ...
    09df3969
    …, transition `interpretCF` to a class method, and eliminate redundant parameter passing for improved clarity and maintainability.
    m-holger authored
    2025-07-09 14:17:20 +0100  
    Browse File »
  • Refactor encryption initialization by encapsulating logic in `EncryptionParamete… ...
    a051a162
    …rs::initialize` and replacing shared pointers with references for improved clarity and maintainability.
    m-holger authored
    2025-07-09 14:14:41 +0100  
    Browse File »
  • Refactor `QPDF::EncryptionData` to encapsulate encryption logic, reduce redundan… ...
    cb3c4c55
    …t parameter passing, and improve maintainability. Change static functions and QPDF methods to EncryptionData methods.
    m-holger authored
    2025-07-09 09:46:52 +0100  
    Browse File »

13 May, 2025
1 commit
  • In QPDF::interpretCF refactor crypt filter lookup for clarity and efficiency ...
    4a4b9456
    Replace `count` method with iterator-based lookup to improve readability and reduce redundancy. Simplify conditional logic for determining the encryption filter, ensuring the default case remains clear.
    m-holger authored
    2025-05-13 10:10:50 +0100  
    Browse File »

05 Apr, 2025
1 commit
  • Fix logic around cleartext metadata (fixes #1368) ...
    8720065c
    Only top-level XMP metadata is supposed to be left unencrypted. All
    other metadata is not treated specially.
    Jay Berkenbilt authored
    2025-04-05 18:06:19 -0400  
    Browse File »

06 Mar, 2025
1 commit
  • Move QPDF inner class definitions to new QPDF_private.hh
    5c866633
    m-holger authored
    2025-03-06 14:12:27 +0000  
    Browse File »

16 Feb, 2025
1 commit
  • Pass QPDFObjGen by value ...
    d8e4a081
    Except for virtual functions to avoid the need for users to update code.
    m-holger authored
    2025-02-16 11:56:39 +0000  
    Browse File »

08 Feb, 2025
1 commit
  • Bump clang-format to version 20 and reformat ...
    38d8cc7f
    This improves indentation of long strings. This commit also fixes some
    trailing whitespace in ChangeLog.
    Jay Berkenbilt authored
    2025-02-08 11:17:57 -0500  
    Browse File »

16 Jan, 2025
2 commits
  • Revert "Merge pull request #1272 from m-holger/xref_table" ...
    0d5c57c1
    This reverts commit ff2a78f579ebdd06b417e34260a17dba06e71137, reversing
    changes made to 8f54319f7a6514110f4b05cbbf1cb1c9fc8cb6a0.
    m-holger authored
    2025-01-16 16:40:08 +0000  
    Browse File »
  • Revert "Merge pull request #1297 from m-holger/qpdf_objects" ...
    efb2e8f6
    This reverts commit c648b9a018105a3c30b3e7f3c5f8a058d3ddd92c, reversing
    changes made to 12b67a3227df6b6df3a4f5f098e11cce173ff7d5.
    m-holger authored
    2025-01-16 16:15:11 +0000  
    Browse File »

09 Oct, 2024
1 commit
  • Make Xref_table an inner class of QPDF::Objects
    b5a57800
    m-holger authored
    2024-10-09 09:53:57 +0100  
    Browse File »

18 Sep, 2024
2 commits
  • Make all QPDF::Xref_table data members private
    39abb113
    m-holger authored
    2024-09-18 10:25:38 +0100  
    Browse File »
  • Add new class QPDF::Xref_table
    0ac37bc9
    m-holger authored
    2024-09-18 10:25:37 +0100  
    Browse File »