apple/swift-crypto
Open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on all Swift supported platforms. observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 99
- Release rhythm 93
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 13.5
- age_days: 2598
- days_rel: 48
- days_push: 9
- n_releases_24m: 33
Adoption not part of the score
1718 stars · 217 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Swift Crypto is an open-source Swift library implementing a substantial portion of Apple CryptoKit's API for use on Linux, Windows, and other Swift-supported platforms. On Apple platforms it simply re-exports CryptoKit, while elsewhere it backs the same API with vendored BoringSSL and XKCP implementations.
Use cases
- add hashing and message authentication to a server-side Swift app on Linux
- perform key exchange and key derivation in a cross-platform Swift package
- encrypt and decrypt data with a safe CryptoKit-style API on Windows
- sign and verify messages with ECDSA or EdDSA in Swift
- share one cryptography API across iOS and Linux codebases
- use server-focused crypto APIs via CryptoExtras
When to choose
- you want CryptoKit's API on non-Apple platforms like Linux or Windows
- you need a safe, best-practice cryptography API in Swift
- you're building server-side Swift applications needing hashing, encryption, or key exchange
- you want portable crypto code shared between Apple and non-Apple targets
When to avoid
- you only target Apple platforms and can use CryptoKit directly
- you need low-level control over cryptographic primitives
- you need algorithms outside CryptoKit's scope not offered by CryptoExtras
- you're not using Swift or the Swift Package Manager ecosystem
Facets
library · maturity active
cryptography security security developer-tools backend windows cryptokit boringssl swift-package-manager hashing key-exchange elliptic-curves server-side-swift linux macos ios swift
1 source
- readme: https://github.com/apple/swift-crypto · fetched 2026-08-28 · da031fb4af54
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| apple/swift-crypto | main | 97 |
For agents
markdown · JSON · MCP: product_card(name="apple/swift-crypto")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem