cryptokit

Perform cryptographic operations in Swift using CryptoKit on Apple devices.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/onymchat/onym-ios --skill cryptokit-onymchat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cryptokit
Source: https://github.com/onymchat/onym-ios/tree/main/.claude/skills/cryptokit
Command: npx skills add https://github.com/onymchat/onym-ios --skill cryptokit-onymchat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

CryptoKit provides a Swift-native API for cryptographic operations on Apple platforms, enabling safer, more maintainable implementations and reducing reliance on legacy Crypto APIs.

Core Features & Use Cases

  • Hashing with SHA256, SHA384, and SHA512
  • HMAC authentication codes
  • Symmetric encryption with AES-GCM and ChaChaPoly
  • Public-key signing with P256, P384, P521, and Curve25519
  • Key agreement via ECDH
  • Secure Enclave key storage
  • Migration guidance from CommonCrypto to CryptoKit

Quick Start

Initialize CryptoKit by creating a Secure Enclave signing key, signing sample data, and verifying the signature.

Frequently Asked Questions about cryptokit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use CryptoKit for SHA-256 hashing and HMAC in Swift?

CryptoKit handles SHA-256, SHA-384, and SHA-512 hashing alongside HMAC generation natively in Swift, providing safer and more maintainable implementations than legacy APIs.

What's the best way to migrate from CommonCrypto to CryptoKit for symmetric encryption?

Migrating from CommonCrypto to CryptoKit for symmetric encryption involves adopting Swift-native AES-GCM and ChaChaPoly patterns, which reduces reliance on legacy crypto APIs and improves code safety.

Can I store cryptographic keys in the Secure Enclave using CryptoKit on iOS?

Yes, CryptoKit enables Secure Enclave key storage on iOS devices, allowing you to generate signing keys and perform cryptographic operations securely within the hardware enclave.

Does CryptoKit support public-key signing and key agreement with Curve25519?

CryptoKit supports public-key signing and key agreement via ECDH using P256, P384, P521, and Curve25519 elliptic curves for secure cryptographic operations on Apple platforms.

What are the limitations of using CryptoKit for Apple platform crypto operations?

CryptoKit is limited to Apple platforms and specifies supported curves and usage patterns; developers must evaluate whether its Swift-native constraints fit their iOS app cryptographic requirements.