News for hackers. Stuff that matters.
Re:Swift System Is Now Open Source by djxfade on Friday September 25, 2020 @06:12PM (#24594647)
import Foundation import CryptoKit

extension String { var md5: String { let computed = Insecure.MD5.hash(data: self.data(using: .utf8)!) return computed.map { String(format: "%02hhx", $0) }.joined() } }

There are no comments on this comment yet.