1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-07 04:41:12 +01:00

Pad long KeyIDs with zeros to 16 chars

This commit is contained in:
Paul Schaub 2023-09-04 14:17:53 +02:00
parent 9ac681d88c
commit 41dfe71994
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 42 additions and 1 deletions

View file

@ -32,6 +32,6 @@ public final class KeyIdUtil {
}
public static String formatKeyId(long keyId) {
return Long.toHexString(keyId).toUpperCase();
return String.format("%016X", keyId);
}
}