Skip to content

Conversation

@Shivam-Singh-Dev
Copy link

This PR replaces usage of the insecure md5 hashing algorithm with sha256 in pdfdoc.py.

MD5 is known to be cryptographically broken and is vulnerable to collision and pre-image attacks. Replacing it with SHA-256 aligns the library with modern security practices, especially when generating PDF identifiers and document signatures.

This PR replaces usage of the insecure md5 hashing algorithm with sha256 in pdfdoc.py.

MD5 is known to be cryptographically broken and is vulnerable to collision and pre-image attacks. Replacing it with SHA-256 aligns the library with modern security practices, especially when generating PDF identifiers and document signatures.
@Shivam-Singh-Dev Shivam-Singh-Dev changed the title Update pdfdoc.py Replace insecure MD5 hash with SHA-256 for PDF signature generation Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant