# krzyzanowskim/CryptoSwift

CryptoSwift is a growing collection of standard and secure cryptographic algorithms implemented in Swift

Repository: https://github.com/krzyzanowskim/CryptoSwift
Canonical: https://ross.abutalabs.com/products/cryptoswift
Homepage: http://cryptoswift.io
Language: Swift
License: NOASSERTION
License Family: other
Topics: swift, aes, cryptography, commoncrypto, cryptoswift, md5, sha1, hmac-authentication, sha3, cipher, digest, aes-gcm, hmac
Last push: 2026-08-19T14:45:33+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 48, longevity 100
- inputs: {"age_days": 4441, "days_push": 14, "days_rel": 133, "gap_med": 185, "n_releases_24m": 4}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10568, forks 1800 (observed 2026-08-28T04:10:42.376193+00:00)

## What it is
CryptoSwift is a pure Swift library providing standard cryptographic algorithms including AES, ChaCha20, SHA family hashes, HMAC, and CRC. It offers convenient Swift extensions and streaming APIs across Apple platforms, Linux, and Android.

## Use cases
- encrypt and decrypt data with AES in Swift
- compute SHA-256 or MD5 hashes of strings or files
- generate HMAC signatures for API authentication
- implement ChaCha20 stream cipher encryption
- calculate CRC32 checksums in Swift
- hash passwords and verify digests cross-platform on Linux

## When to choose
- you need pure Swift crypto without C dependencies like CommonCrypto
- you want convenient String/Data extensions for hashing and encryption
- you target Apple platforms plus Linux or Android with one codebase
- you need streaming or incremental hash/cipher updates

## When to avoid
- you need formally audited or constant-time crypto for highly sensitive production secrets
- you only need Apple-platform crypto and can use the system CommonCrypto/CryptoKit
- you need advanced protocols like TLS, certificates, or public-key infrastructure
- you require FIPS-validated implementations

## Facets
- artifact type: library
- maturity: active
- function: cryptography, security, serialization
- domain: security, developer-tools, cross-platform
- platform: cross-platform
- tags: aes, hashing, hmac, chacha20, pure-swift, digest, ciphers, sha3, swift-package-manager, macos, ios, linux, android, swift

## Member repositories
- krzyzanowskim/CryptoSwift (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:42.376193+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:18:32.007247+00:00, confidence not recorded.
  - readme: https://github.com/krzyzanowskim/CryptoSwift (fetched 2026-08-28T04:10:42.376193+00:00, sha 1b7a97c35356)
  - homepage: http://cryptoswift.io (fetched 2026-08-29T08:17:41.189470+00:00, sha 5b16345c9ca6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
