// // Utils.swift // iosApp // // Created by Iván on 30/01/22. // Copyright © 2022 orgName. All rights reserved. // import Foundation import CryptoKit class Utils { static func MD5(string: String) -> String { let digest = Insecure.MD5.hash(data: string.data(using: .utf8) ?? Data()) return digest.map { String(format: "%02hhx", $0) }.joined() } }