-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
PGP or S/MIMErequires knowledge of spec internalsrequires knowledge of spec internals
Milestone
Description
public static fingerprintToLongid = (fingerprint: string) => {
if (fingerprint.length === 40) { // pgp keys
return fingerprint.substr(-16).toUpperCase();
}
throw new Error(`Unexpected fingerprint format (len: ${fingerprint.length}): "${fingerprint}"`);
}Actually this is ok, however this will not work for v5 OpenPGP keys which use longer fingerprints. I'll file a separate issue.
Originally posted by @tomholub in #3575 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
PGP or S/MIMErequires knowledge of spec internalsrequires knowledge of spec internals