diff --git a/SecretKit/Common/OpenSSHKeyWriter.swift b/SecretKit/Common/OpenSSHKeyWriter.swift index ebd25b2..c50f861 100644 --- a/SecretKit/Common/OpenSSHKeyWriter.swift +++ b/SecretKit/Common/OpenSSHKeyWriter.swift @@ -19,7 +19,7 @@ public struct OpenSSHKeyWriter { public func openSSHFingerprint(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: ":") }