qmetrics.net

CryptoSwift

Pure Swift cryptographic primitives and utilities library

CryptoSwift screenshot

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.

Overview

CryptoSwift is a Swift library that collects cryptographic building blocks for application and protocol work. It is written entirely in Swift and exposes convenient helpers for String, Data, and Array types, including streaming and incremental update APIs.

The library covers digest functions such as MD5, SHA family variants, and SHA-3, plus CRC helpers. Cipher support includes AES key sizes, ChaCha20 variants, RSA encryption and signatures, and numerous block modes including GCM and CCM for authenticated encryption.

Message authenticators include Poly1305, HMAC, and CMAC. Password-based key derivation covers PBKDF, HKDF, and scrypt. Documentation in the project recommends AEAD modes and modern hashes for new designs while treating older algorithms as legacy interoperability options.

Installation is primarily through Swift Package Manager, with optional local XCFramework builds for manual Xcode integration. Apple platform deployment targets and Linux and Android exercise in CI are documented for compatibility planning.

Key features

  • AES and ChaCha20 ciphers
  • SHA and SHA-3 digests
  • AES-GCM and AEAD modes
  • HMAC and Poly1305 MACs
  • RSA encrypt and sign
  • Streaming incremental crypto APIs
  • String and Data convenience helpers
  • Swift Package Manager distribution

Use cases

  • Swift app encryption
  • Protocol and token signing
  • Password-based key derivation
  • Replacing CommonCrypto in Swift

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

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

Swift Crypto

Open-source CryptoKit-style cryptography for Swift across platforms

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.

★ 1.7k⟳ 4 days agoApache-2.0
Application SecurityDesktop/CLI app