mirror of
https://github.com/maxgoedjen/secretive.git
synced 2024-12-22 04:07:09 +00:00
Fixes #9
This commit is contained in:
parent
bf38890d09
commit
f60e7c79f2
@ -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: ":")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user