Skip to content

SEC: Switch to AES for encryption #1754

@MartinThoma

Description

@MartinThoma

Currently, pypdf uses the security handler revision number 3 (R=3) and V=2. That means:

"Algorithm 1: Encryption of data using the RC4 or AES algorithms"
in 7.6.2, "General Encryption Algorithm," but permitting encryption key lengths
greater than 40 bits.

RC4 is not secure (source). At the very least we should issue a big warning + document this behavior. By default, we should use secure encryption methods

AES encryption is not implemented so far. Only decryption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    nf-securityNon-functional change: Security

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions