What problem does it solve?
Developers need a safe, Swift-native API to perform cryptographic operations without delving into lower-level Security frameworks, enabling hashing, signing, encryption, key exchange, and secure key storage with the Secure Enclave.
Core Features & Use Cases
- Hashing with SHA256, SHA384, and SHA512 for data integrity
- HMAC for message authentication
- Symmetric encryption using AES-GCM and ChaChaPoly
- Public-key signing with P256 and Curve25519
- Key agreement (ECDH) to derive symmetric keys
- Secure Enclave-backed key storage and usage
- Key export/import patterns and Keychain integration for secure key handling
- Practical scenarios include securing user data, signing tokens, and protecting app secrets
Quick Start
Hash a message with SHA256 using CryptoKit to verify data integrity.