Skip to main content

Encryption & Keychain

PrismSecurity provides a full cryptographic toolkit built on CryptoKit — symmetric encryption, hashing, key derivation, keychain storage, Secure Enclave, and a high-level PrismSecureStore that combines encryption + keychain in one call.

Encryption

AES-GCM (Default)

ChaChaPoly

Codable Values

Key Export / Import

Hashing

SHA-256 / 384 / 512

HMAC

Key Derivation

HKDF

Password-Based

Keychain

Save and Load

Access Control

Existence & Deletion

Secure Enclave

Hardware-backed P256 key generation and signing — keys never leave the chip.
Secure Enclave is only available on devices with the T2 chip or later (iPhone 5s+, Apple Silicon Macs). Check availability before use.

Secure Store

High-level API that combines encryption + keychain — encrypt data with a managed key and store the ciphertext in the keychain, all in one call.

Configurations