Introducing Swift Crypto

I’m thrilled to announce a new open-source project for the Swift ecosystem, Swift Crypto. Swift Crypto is a new Swift package that brings the fantastic APIs of Apple CryptoKit to the wider Swift community. This will allow Swift developers, regardless of the platform on which they deploy their applications, to access these APIs for a common set of cryptographic operations.

swift.org/blog/crypto/

Swift Crypto is a new open-source Swift package that extends Apple CryptoKit's APIs to non-Apple platforms by using BoringSSL for cryptographic primitives, while deferring to CryptoKit on Apple systems for seamless cross-platform development.

It enables safe operations like AES-GCM encryption, HMAC authentication, and elliptic curve key exchanges with simple, consistent APIs that avoid common pitfalls. As a semantically versioned package under Apache 2.0, it evolves alongside CryptoKit, welcomes community proposals for new features, but focuses on essential primitives to maintain usability and security without overwhelming choices.


Category:

Tag:

Year: