# matthewpalmer/Locksmith

A powerful, protocol-oriented library for working with the keychain in Swift.

Repository: https://github.com/matthewpalmer/Locksmith
Canonical: https://ross.abutalabs.com/products/locksmith
Language: Swift
License: MIT
License Family: permissive
Last push: 2024-03-22T20:08:39+00:00

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

## Adoption (not part of the score)
Stars 2913, forks 269 (observed 2026-08-28T04:07:29.327536+00:00)

## What it is
Locksmith is a protocol-oriented Swift library for interacting with the iOS, macOS, watchOS, and tvOS keychain. It provides a simple API for saving, loading, updating, and deleting secure data with strongly typed results.

## Use cases
- store passwords securely in the iOS keychain
- save user credentials on macOS
- read and write keychain items in Swift
- add secure storage to my Swift types via protocols
- delete keychain entries in an iOS app
- manage keychain metadata with strongly typed results

## When to choose
- you need keychain access across iOS, macOS, watchOS, and tvOS
- you prefer a protocol-oriented, Swift-native API over raw Security framework calls
- you want typed access to keychain metadata

## When to avoid
- you need a cross-platform (non-Apple) secure storage solution
- your project targets Swift versions older than 4 without using the legacy branch
- the library appears to be in maintenance mode and you need actively developed features

## Facets
- artifact type: library
- maturity: maintenance
- function: security, cryptography, sdk
- domain: security, mobile-development, developer-tools
- platform: -
- tags: keychain, swift, protocol-oriented, secure-storage, cocoapods, carthage, ios, macos, mobile, desktop

## Member repositories
- matthewpalmer/Locksmith (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:29.327536+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-30T07:34:13.469664+00:00, confidence not recorded.
  - readme: https://github.com/matthewpalmer/Locksmith (fetched 2026-08-28T04:07:29.327536+00:00, sha 4792fa0477c2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
