
Cryptokit
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
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 -yInstalls 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
- HMAC
- Symmetric Encryption
- Public-Key Signing
- Key Agreement
- HPKE
- Post-Quantum CryptoKit
- Secure Enclave
- Common Mistakes
- Review Checklist
- References
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- Metrickit3.4K
- Pdfkit3.4K
- Gamekit3.4K
- Swift Architecture3.4K
- Eventkit3.4K
- Musickit3.3K
- Pencilkit3.3K
- Ios Simulator3.3K
- Carplay3.3K
- Scenekit3.3K
- Accessorysetupkit3.3K
- Homekit3.3K
- Callkit3.3K
- Cryptotokenkit3.3K
- Financekit3.3K
- Paperkit3.3K
- Adattributionkit3.3K
- Passkit3.3K
- Audioaccessorykit3.3K
- Dockkit3.3K
- Swift Security3.3K
- Browserenginekit3.2K
- Appmigrationkit3.2K
- Relevancekit3.2K
Similar to Cryptokit
More Mobile Apps
swift-securitydpearson2699/swift-ios-skills3.3K installsKeychain, biometric, CryptoKit, and certificate-trust guidance for Apple platform security, loaded by task.
cryptotokenkitdpearson2699/swift-ios-skills3.3K installsSwift-native smart-card and token driver guide for CryptoTokenKit, covering extensions, sessions, NFC slots, and keychain integration.
clerk-swiftclerk/skills15.3K installsNative Swift Clerk auth for iOS and macOS, with prebuilt ClerkKitUI views or custom ClerkKit flows.
axiom-securitycharleswiltgen/axiom1.3K installsSecurity, credential, and code-signing reference router that points to focused guides for keychain, CryptoKit, passkeys, app attestation, and agentic AI securit
developing-ios-appsdaymade/claude-code-skills1.6K installsBuild, sign, and notarize iOS and macOS apps with XcodeGen, SwiftUI, SPM, and CI/CD pipelines.
auth0-swiftauth0/agent-skills477 installsGuides Auth0 login, logout, and biometric-protected credential storage integration for Apple platform apps.