From f60e7c79f2fcd158b8dfbe83169166084360c966 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Fri, 6 Mar 2020 19:15:27 -0800 Subject: [PATCH] Fixes #9 --- SecretKit/Common/OpenSSHKeyWriter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: ":") }