Skip to content

Add fingerprint/1 and fingerprint_equal/2 to hex_repo#176

Merged
ericmj merged 1 commit intohexpm:mainfrom
maennchen:jm/repo-fingerprint
Apr 11, 2026
Merged

Add fingerprint/1 and fingerprint_equal/2 to hex_repo#176
ericmj merged 1 commit intohexpm:mainfrom
maennchen:jm/repo-fingerprint

Conversation

@maennchen
Copy link
Copy Markdown
Collaborator

These functions allow computing and verifying SHA256 fingerprints of PEM-encoded public keys, useful for out-of-band verification when configuring repositories.

fingerprint_equal/2 uses crypto:hash_equals/2 for constant-time comparison to prevent timing attacks.

@maennchen maennchen requested a review from ericmj April 11, 2026 17:06
These functions allow computing and verifying SHA256 fingerprints of
PEM-encoded public keys, useful for out-of-band verification when
configuring repositories.

fingerprint_equal/2 uses crypto:hash_equals/2 for constant-time
comparison to prevent timing attacks.
@maennchen maennchen force-pushed the jm/repo-fingerprint branch from 7e1638b to 57cf588 Compare April 11, 2026 17:21
@ericmj ericmj merged commit d8860b9 into hexpm:main Apr 11, 2026
9 of 10 checks passed
@maennchen maennchen deleted the jm/repo-fingerprint branch April 11, 2026 17:25
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.

2 participants