People expect apps to be secure and their data secure. You may need to perform cryptographic work to implement features such as authentication, message encryption or control requirements. Crypto Kit is a Swift framework that makes it easy and reliable to perform common cryptography tasks, whether you want to easily calculate hash or implement advanced authentication protocols. This year, CryptoKit will be launching new APIs for HMAC-based Extract-and-Expand Key Derivation Functions (HKDF), PEM and DER formats, and your Swift Crypto Code will now run wherever Swift runs.
HKDF
Key extraction functions allow you to retrieve one or more secrets of your choice from a master key or password. Starting with iOS 14, you can now use independent APIs for HKDF. Combine a simple one-stroke variant for fast, high-quality control over the process of extracting multiple keys from the main secret, or two-step extraction and the extraction of the API. In earlier versions of iOS, HDDF was supported only when the elliptical curve key protocol was released.
HKDF
PEM and DER formats for designing elliptical curve keys
PEM and DER formats are now directly supported by CryptoKit. Crypto Kit You can now transfer PEM string or DER-encoded data to start public and private keys, without having to use another library to perform the conversion.
Mobility
You can create platform solutions using the CryptoKit APIs on all the platforms that Swift supports, including Swift Crypto Linux and servers. Mobility is important when you want to run the same code on your client and server, for example, supporting two-step verification using a one-time password.
Resources
Introducing Swift Crypto
Check out dotSwift 2020 Cryptography in Swift