New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Apple-native Swift cryptography for hashing, HMAC, AES-GCM, signing, key agreement, and HPKE, using CryptoKit APIs.

skills.sh installs
3.4K
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers SHA-2 and SHA-3 hashing, HMAC, AES-GCM and ChaChaPoly encryption, and ECDSA or Ed25519 signing with P256, P384, P521, and Curve25519 keys
  • Includes ECDH key agreement with HKDF or X9.63 key derivation, plus HPKE encryption to a recipient public key on iOS 17+
  • Enforces availability checks for SHA-3 (iOS 26+) and HPKE (iOS 17+) and warns against comparing serialized digests or MACs manually
  • Designed for Swift 6.3+ code that is migrating from CommonCrypto or raw Security framework APIs to CryptoKit

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill cryptokit -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

CryptoKit

Apple CryptoKit provides a Swift-native API for cryptographic operations: hashing, message authentication, symmetric encryption, public-key signing, key agreement, HPKE, quantum-secure key encapsulation/signing, and Secure Enclave-backed keys. Most core primitives are available on iOS 13+; check availability for HPKE (iOS 17+) and SHA-3 / post-quantum APIs (iOS 26+). Prefer CryptoKit over CommonCrypto or raw Security framework APIs for new cryptographic primitive code targeting Swift 6.3+.

Contents

Hashing

Use SHA256/SHA384/SHA512 on iOS 13+; SHA3_256/SHA3_384/SHA3_512 require iOS 26+. All conform to HashFunction.

One-shot hashing

import CryptoKit

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Mobile Apps, Security
First seen
May 16, 2026

More from dpearson2699/swift-ios-skills

All 94

Similar to Cryptokit

More Mobile Apps