
Cryptokit
Wraps Apple's CryptoKit framework for Swift apps targeting iOS 13+. Handles SHA256/384/512 hashing, HMAC authentication codes, AES-GCM and ChaChaPoly symmetric encryption, ECDSA signing with P256/P384/P521 curves plus Ed25519, ECDH key agreement, and Secure Enclave hardware key storage. The skill covers both one-shot and incremental operations, shows how to properly derive keys from shared secrets using HKDF, and includes authenticated encryption with additional data. CryptoKit is the modern replacement for CommonCrypto in Swift, so reach for this when you need production-grade crypto without wrestling with C APIs or managing your own constant-time comparisons.
- skills.sh installs
- 3.3K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill cryptokit --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Data Science & ML, Mobile Development, Finance & Trading
- First seen
- May 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Metrickit3.3K
- Pdfkit3.3K
- Gamekit3.3K
- Eventkit3.3K
- Musickit3.3K
- Swift Architecture3.3K
- Pencilkit3.3K
- Carplay3.2K
- Ios Simulator3.2K
- Scenekit3.2K
- Homekit3.2K
- Accessorysetupkit3.2K
- Callkit3.2K
- Cryptotokenkit3.2K
- Financekit3.2K
- Adattributionkit3.2K
- Paperkit3.2K
- Passkit3.2K
- Audioaccessorykit3.2K
- Dockkit3.2K
- Browserenginekit3.2K
- Appmigrationkit3.2K
- Relevancekit3.2K
- Sensorkit3.2K