# evgenyneu/keychain-swift

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.

Repository: https://github.com/evgenyneu/keychain-swift
Canonical: https://ross.abutalabs.com/products/keychain-swift
Language: Swift
License: MIT
License Family: permissive
Topics: ios, swift, keychain
Last push: 2024-05-26T06:48:14+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4227, "days_push": 829, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3012, forks 368 (observed 2026-08-28T04:07:37.840414+00:00)

## What it is
A Swift library providing simple helper functions for securely storing and retrieving text, boolean, and Data values in the Apple Keychain. It wraps Apple's verbose Keychain API with concise syntax and supports access levels, iCloud synchronization, and keychain sharing across apps.

## Use cases
- store user passwords and tokens securely in iOS keychain
- save sensitive data in macOS keychain with simple Swift syntax
- synchronize keychain items across devices via iCloud
- share keychain items between apps in the same access group
- replace verbose Apple keychain API with helper functions

## When to choose
- you need secure storage of small sensitive values like tokens or passwords in an Apple-platform app
- you want a lightweight, well-established Swift wrapper around the Keychain API
- you need iCloud keychain sync or app-group keychain sharing

## When to avoid
- you need to store large amounts of data (Keychain is meant for small items)
- you target non-Apple platforms
- you need full low-level control over all Keychain attributes

## Facets
- artifact type: library
- maturity: stable
- function: security, cryptography, sdk
- domain: security, mobile-development, developer-tools
- platform: -
- tags: keychain, secure-storage, swift-package-manager, cocoapods, icloud-sync, ios, macos, swift, mobile

## Member repositories
- evgenyneu/keychain-swift (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:37.840414+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:47:02.113806+00:00, confidence not recorded.
  - readme: https://github.com/evgenyneu/keychain-swift (fetched 2026-08-28T04:07:37.840414+00:00, sha ef5c11cbd8c9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
