# Swift Crypto

**URL:** https://forums.swift.org/c/related-projects/swift-crypto/59.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [About the Swift Crypto category](https://forums.swift.org/t/about-the-swift-crypto-category/33397)

<div class="topic-metadata">

**Author:** [@mishal\_shah](https://forums.swift.org/u/mishal_shah)\
**Replies:** 0

</div>

Swift Crypto is a cross-platform package that provides an open source implementation of the platform independent crypto APIs from Apple’s CryptoKit library.

---

## [State of cryptography in Swift](https://forums.swift.org/t/state-of-cryptography-in-swift/89649)

<div class="topic-metadata">

**Author:** [@ptoffy](https://forums.swift.org/u/ptoffy)\
**Replies:** 4\
**Last updated:** [September 20, 2026, 10:13pm UTC](https://forums.swift.org/t/state-of-cryptography-in-swift/89649 "2026-09-20T22:13:39Z")

</div>

Hi all, Nearly two years have passed since this post about Swift Crypto on all platforms. That post aimed to discuss the state of the main cryptography library used today in Swift, its interaction with its closed sourc…

---

## [Encrypt data](https://forums.swift.org/t/encrypt-data/76536)

<div class="topic-metadata">

**Author:** [@romanindermuehle](https://forums.swift.org/u/romanindermuehle)\
**Replies:** 37\
**Last updated:** [May 1, 2025, 2:04pm UTC](https://forums.swift.org/t/encrypt-data/76536 "2025-05-01T14:04:20Z")

</div>

Currently, I’m building an app where I use Supabase to store my data. However, I have some sensitive data that I’d like to protect. So, my idea is to generate a RSA key, save it in the keychain, sync it with iCloud, and …

---

## [Encrypting large files using SwiftCrypto](https://forums.swift.org/t/encrypting-large-files-using-swiftcrypto/70338)

<div class="topic-metadata">

**Author:** [@bjhomer](https://forums.swift.org/u/bjhomer)\
**Replies:** 0\
**Last updated:** [February 28, 2024, 7:01pm UTC](https://forums.swift.org/t/encrypting-large-files-using-swiftcrypto/70338 "2024-02-28T19:01:06Z")

</div>

It appears that there is no current API for streaming encryption in SwiftCrypto right now. This means that if I have a large file that I want to encrypt, I think I need to load the entire file into memory, then pass it t…

---

## [Swift Crypto 3.0.0](https://forums.swift.org/t/swift-crypto-3-0-0/67387)

<div class="topic-metadata">

**Author:** [@lukasa](https://forums.swift.org/u/lukasa)\
**Replies:** 0\
**Last updated:** [September 20, 2023, 9:08am UTC](https://forums.swift.org/t/swift-crypto-3-0-0/67387 "2023-09-20T09:08:01Z")

</div>

To accompany the release of the Xcode 15 GM, we have just tagged a release of Swift Crypto 3.0.0. This release brings Swift Crypto up-to-date with the new CryptoKit APIs added in the most recent Apple platform SDKs. As …

---

## [Swift Crypto 2.0.0](https://forums.swift.org/t/swift-crypto-2-0-0/52308)

<div class="topic-metadata">

**Author:** [@lukasa](https://forums.swift.org/u/lukasa)\
**Replies:** 0\
**Last updated:** [September 23, 2021, 6:50am UTC](https://forums.swift.org/t/swift-crypto-2-0-0/52308 "2021-09-23T06:50:28Z")

</div>

To accompany the release of the Xcode 13 GM, we have just tagged a release of Swift Crypto 2.0.0. This release brings Swift Crypto up-to-date with the new CryptoKit APIs added in the most recent Apple platform SDKs. As …

---

## [How to decrypt minizip's WinZip AES using Apple's CryptoKit?](https://forums.swift.org/t/how-to-decrypt-minizips-winzip-aes-using-apples-cryptokit/62047)

<div class="topic-metadata">

**Author:** [@goppinath](https://forums.swift.org/u/goppinath)\
**Replies:** 1\
**Last updated:** [December 16, 2022, 9:28am UTC](https://forums.swift.org/t/how-to-decrypt-minizips-winzip-aes-using-apples-cryptokit/62047 "2022-12-16T09:28:27Z")

</div>

A project required me to decrypt minizip's WinZip AES on iOS. At the same time, Apple's CryptoKit is an upcoming framework to fulfil these kinds of needs by making use of specially designed hardware. How to make use of …

---

## [Is there no (sane) way to initialize a HashedAuthenticationCode from an external representation?](https://forums.swift.org/t/is-there-no-sane-way-to-initialize-a-hashedauthenticationcode-from-an-external-representation/60555)

<div class="topic-metadata">

**Author:** [@MPLewis](https://forums.swift.org/u/MPLewis)\
**Replies:** 2\
**Last updated:** [September 29, 2022, 8:45pm UTC](https://forums.swift.org/t/is-there-no-sane-way-to-initialize-a-hashedauthenticationcode-from-an-external-representation/60555 "2022-09-29T20:45:26Z")

</div>

Unless I'm missing something obvious, it looks like the open-source implementation of HashedAuthenticationCode has no public initializers, meaning that trying to generate an authentication code and storing it somewhere f…

---

## [Updated motivation for supporting secp256k1](https://forums.swift.org/t/updated-motivation-for-supporting-secp256k1/53993)

<div class="topic-metadata">

**Author:** [@Sajjon](https://forums.swift.org/u/Sajjon)\
**Replies:** 3\
**Last updated:** [December 31, 2021, 10:40pm UTC](https://forums.swift.org/t/updated-motivation-for-supporting-secp256k1/53993 "2021-12-31T22:40:27Z")

</div>

I have written a comment regarding what has happened in the past (soon) two years since I first proposed adding secp256k1 to Swift Crypto You can find it here Does anyone feel Ive missed something? Can anything be made…

---

## [Security details in Swift Crypto](https://forums.swift.org/t/security-details-in-swift-crypto/42614)

<div class="topic-metadata">

**Author:** [@lukasa](https://forums.swift.org/u/lukasa)\
**Replies:** 0\
**Last updated:** [December 8, 2020, 8:21pm UTC](https://forums.swift.org/t/security-details-in-swift-crypto/42614 "2020-12-08T20:21:29Z")

</div>

OpenSSL published a security update today addressing CVE-2020-1971, a null pointer dereference in the X.509 library. As BoringSSL has not changed the X.509 implementation since the fork from OpenSSL, this issue does affe…

---

## [Native implementations and BoringSSL-backed Apple platform deployments](https://forums.swift.org/t/native-implementations-and-boringssl-backed-apple-platform-deployments/33404)

<div class="topic-metadata">

**Author:** [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Replies:** 13\
**Last updated:** [February 16, 2020, 7:31am UTC](https://forums.swift.org/t/native-implementations-and-boringssl-backed-apple-platform-deployments/33404 "2020-02-16T07:31:10Z")

</div>

There are two big issues I didn't see addressed in the Swift Crypto docs made available so far. Is it a goal, explicit non-goal, or undecided to implement crypto primitives and algorithms in native Swift, eventually re…

---

## [External formats and Swift Crypto](https://forums.swift.org/t/external-formats-and-swift-crypto/33848)

<div class="topic-metadata">

**Author:** [@sharplet](https://forums.swift.org/u/sharplet)\
**Replies:** 1\
**Last updated:** [February 15, 2020, 8:54pm UTC](https://forums.swift.org/t/external-formats-and-swift-crypto/33848 "2020-02-15T20:54:09Z")

</div>

First of all, I love the Swift Crypto exists and am very excited about having modern cryptographic tools available on all platforms. I started experimenting with using the library for working with JWTs, but quickly ran …
