Skip to content

Conversation

@MartinThoma
Copy link
Member

@MartinThoma MartinThoma commented Jun 25, 2023

  • CryptFilter.encrypt_object implemented
  • AlgV5.generate_values now crops the user_password / owner_password to 127 bytes
  • The EncryptAlgorithm Enum was added. It contains the parameter V (version), R (revision), and length
  • Encryption.encrypt_object was added
  • Encryption.write_entry was added
  • The static method Encryption.make was added

This PR was only made to make it easier to merge the other changes / to avoid merge conflicts of other changes with #1816 . Full credit goes to exiledkingcc.

The PR is marked as "MAINT" as it doesn't add a new feature that an end-user could use.

Full credit goes to exiledkingcc

This PR was only made to make it easier to merge the other changes /
to avoid merge conflicts.

Co-authored-by: exiledkingcc <[email protected]>
@MartinThoma MartinThoma added the is-maintenance Anything that is just internal: Simplifying code, syntax changes, updating docs, speed improvements label Jun 25, 2023
@codecov
Copy link

codecov bot commented Jun 25, 2023

Codecov Report

Patch coverage: 18.94% and project coverage change: -1.00 ⚠️

Comparison is base (bd904ea) 93.85% compared to head (77e3932) 92.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1917      +/-   ##
==========================================
- Coverage   93.85%   92.85%   -1.00%     
==========================================
  Files          34       34              
  Lines        6964     7056      +92     
  Branches     1375     1389      +14     
==========================================
+ Hits         6536     6552      +16     
- Misses        282      358      +76     
  Partials      146      146              
Impacted Files Coverage Δ
pypdf/_encryption.py 77.56% <15.38%> (-14.45%) ⬇️
pypdf/generic/_base.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@MartinThoma MartinThoma merged commit 34a9abf into main Jun 25, 2023
@MartinThoma MartinThoma deleted the support-aes-encryption branch June 25, 2023 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is-maintenance Anything that is just internal: Simplifying code, syntax changes, updating docs, speed improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant