This commit is contained in:
Max Goedjen 2020-03-06 19:15:27 -08:00
parent bf38890d09
commit f60e7c79f2
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public struct OpenSSHKeyWriter {
public func openSSHFingerprint<SecretType: Secret>(secret: SecretType) -> String {
Insecure.MD5.hash(data: data(secret: secret))
.compactMap { String($0, radix: 16, uppercase: false) }
.compactMap { ("0" + String($0, radix: 16, uppercase: false)).suffix(2) }
.joined(separator: ":")
}