Common cryptographic operations in Swift with CryptoKit

Photo by Jonatan Pie https://unsplash.com/photos/olMIzrcu-bA

What is CryptoKit?

Apple’s CryptoKit is a new (as of summer ’19) library available from iOS 13 and onwards that performs cryptographic operations securely and efficiently. Its features include:

  • A (nice) Swift API.
  • Access to cryptographic functions.
  • Ease of use for easy to misuse functions.
  • An improvement over legacy systems.

Existing cryptography solutions on iOS

There are two popular, trusted and open-source solutions. The first one is OpenSSL (official) which is an open-source C based library that you can statically link to your app at the cost of increasing its size though. …

Read more in The Startup · 7 min read