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

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.

  • AES and ChaCha20 ciphers
  • SHA and SHA-3 digests
  • AES-GCM and AEAD modes
SwiftLinux, macOS, Android, iOSDetails →
★ 10.6k⟳ 3 months agoZlib

Libsignal

Cryptographic libraries powering Signal clients

libsignal exposes Java, Swift, and TypeScript APIs over Rust implementations of the Signal Protocol and related crypto. Signal’s own apps and servers depend on it.

  • Signal Protocol implementation
  • Zero-knowledge group credentials
  • Multi-language FFI bridges
RustAndroid, iOS, Linux, macOSDetails →
★ 6.2k⟳ todayAGPL-3.0

GmSSL

Chinese commercial cryptography library and command tools

GmSSL implements Chinese national algorithms SM2, SM3, SM4, SM9, and related SSL protocols. It offers CLI tools, language bindings, and support for domestic crypto hardware.

  • SM2 SM3 SM4 SM9 algorithms
  • TLCP and TLS stacks
  • X.509 certificate tools
CWindows, Android, iOS, macOSDetails →
★ 6.2k⟳ 5 months agoApache-2.0

phpseclib

Pure PHP cryptography and secure communications library

phpseclib implements SSH, SFTP, X.509, and common symmetric and public-key algorithms in PHP without mandatory extensions. It optionally accelerates via OpenSSL, GMP, or libsodium when present.

  • SSH-2 and SFTP client implementations
  • RSA, DSA, and elliptic curve crypto
  • AES, ChaCha20, and legacy ciphers
PHPDetails →
★ 5.6k⟳ todayMIT

OpenHashTab

Windows shell extension for file hash checking

OpenHashTab adds a File Properties tab on Windows to compute many hash algorithms, compare checksum files, and export or verify digests.

  • File Properties hashing tab
  • 28 supported hash algorithms
  • Checksum file verification
C++WindowsDetails →
★ 4.8k⟳ 1 year agoGPL-3.0

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.

  • BFV and BGV encrypted integer arithmetic
  • CKKS approximate encrypted real math
  • C++ and .NET language support
C++Linux, macOS, WindowsDetails →
★ 4.1k⟳ 8 days agoMIT