What problem does it solve?
Helps developers implement correct, modern cryptographic operations in Swift by providing clear patterns and safe defaults for hashing, HMAC, authenticated encryption, signing, key agreement, and Secure Enclave usage so apps avoid common crypto pitfalls.
Core Features & Use Cases
- Hashing & HMAC: SHA256/SHA384/SHA512 hashing and HMAC generation/verification with constant-time checks.
- Authenticated Encryption: AES-GCM and ChaChaPoly usage patterns, nonce guidance, AAD handling, and sealed-box anatomy for safe encryption and decryption.
- Public-Key Operations & Key Agreement: ECDSA/Ed25519 signing, ECDH key agreement with HKDF-based key derivation, signature formats, and interoperability notes.
- Secure Enclave & Key Storage: Creating, protecting, exporting, and restoring Secure Enclave keys and guidance for Keychain storage and export compliance.
- Migration & Best Practices: CommonCrypto migration recipes, performance considerations, and a review checklist to validate secure implementations.
Quick Start
Use the cryptokit skill to generate or import keys, derive a symmetric key with HKDF, encrypt data with AES-GCM or ChaChaPoly, and sign or verify a message.