qmetrics.net

Swift Crypto

Open-source CryptoKit-style cryptography for Swift across platforms

Swift Crypto screenshot

Swift Crypto implements much of the Apple CryptoKit API for Linux and other non-Apple platforms, with a CryptoExtras module for extra server-oriented APIs.

Overview

Swift Crypto is an open-source cryptography package aligned with Apple CryptoKit. On Apple systems where CryptoKit already exists, it re-exports CryptoKit instead of duplicating work. On Linux, ARM64 Windows, and similar targets it builds BoringSSL and XKCP-backed implementations plus shared API code.

The Crypto product exposes hashing, HMAC, symmetric ciphers such as AES and ChaChaPoly, elliptic-curve key agreement and signatures, HPKE, HKDF, and related types without relying on specialized hardware-only APIs. CryptoExtras adds primitives aimed at server scenarios; depending on it can bundle the BoringSSL implementation on any platform.

New APIs may land in Staging when they are expected in CryptoKit, or in Server when they are server-only and not destined for general CryptoKit. The project intentionally avoids unsafe legacy algorithms.

Consumers add the package through Swift Package Manager and import Crypto in application or server code.

Key features

  • SHA-2 and SHA-3 hash functions
  • HMAC and symmetric keys
  • AES and ChaChaPoly ciphers
  • Curve25519 and NIST P-curves
  • HPKE and shared secrets
  • HKDF key derivation
  • CryptoKit-compatible public API
  • CryptoExtras server extensions

Use cases

  • Cross-platform Swift server cryptography
  • Linux and ARM64 Windows CryptoKit parity
  • Hashing and message authentication in apps
  • Public-key encryption and key agreement

Tags

Similar software

OpenSSL Library

General-purpose TLS, QUIC, and cryptography toolkit

Toolkit implementing TLS, DTLS, and QUIC plus a standalone cryptographic library. Includes a command-line tool for certificates, digests, encryption, and protocol tests.

★ 31.6k⟳ yesterdayApache-2.0
Application SecurityDesktop/CLI app

CryptoSwift

Pure Swift cryptographic primitives and utilities library

CryptoSwift implements standard cryptographic algorithms in Swift for hashing, ciphers, message authentication, and key derivation. It integrates via Swift Package Manager and targets Apple platforms, Linux, and Android.

★ 10.6k⟳ 3 months agoZlib
Application SecurityDesktop/CLI app

Device Activity Tracker

Research PoC for messenger delivery-receipt activity leaks

Device Activity Tracker measures message delivery round-trip times on WhatsApp and Signal to infer active, standby, or offline device states for security research.

★ 5.3k⟳ 11 months agoMIT · open core

Microsoft SEAL

C++ homomorphic encryption library for private cloud computation

Microsoft SEAL is an open-source homomorphic encryption library in modern C++. It lets programs add and multiply encrypted integers or approximate encrypted real numbers.

★ 4.1k⟳ 1 month agoMIT
Application SecurityDesktop/CLI app

jsrsasign

Pure JavaScript cryptography and PKI toolkit

jsrsasign implements signing, validation, certificates, CMS, timestamps, and JWS/JWT/JWK handling in JavaScript with no external crypto dependencies.

★ 3.4k⟳ 29 days agoMIT
Application SecurityDesktop/CLI app

liboqs

C library for quantum-safe KEM and signature algorithms

liboqs implements post-quantum key encapsulation and signature schemes behind one C API. It includes tests and benchmarks for research and prototyping, not production reliance.

★ 3.1k⟳ 3 days agoMIT · open core
Application SecurityDesktop/CLI app