 }
 
 #endif
+
+#if canImport(CryptoKit)
+import CryptoKit
+
+@available(iOS 13.0, *)
+private extension MapleBaconCache {
+
+  private func makeMD5CacheKey(_ key: String, identifier: String?) -> String {
+    let key = key + (identifier ?? "")
+    let digest = Insecure.MD5.hash(data: Data(key.utf8))
+    return digest.map { String(format: "%02hhx", $0) }.joined()
+  }
+
+}
+
+#endif

      return fileSafeKey
    }
    return fileSafeKey + "-" + identifier
  }

  @available(iOS 13.0, *)
  private func makeMD5CacheKey(_ key: String, identifier: String?) -> String {
    let key = key + (identifier ?? "")
    let digest = Insecure.MD5.hash(data: Data(key.utf8))
    return digest.map { String(format: "%02hhx", $0) }.joined()
  }

  /// Retrieve an image from cache. Will look in both memory and on disk. When the image is only available on disk

//

import UIKit

public enum MapleBaconCacheError: Error {
  case imageNotFound
