OSS TanbouSign in with GitHub

use Swift APIs for Apple Keychain storage, accessibility, and Face ID protection

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
8,253
Primary language
Swift
License
MIT
Repository last updated
May 31, 2024
On this page

Overview

KeychainAccess is a Swift wrapper around Security framework Keychain APIs. It stores and retrieves application or internet passwords and also exposes access groups, accessibility, iCloud synchronization, and Touch ID/Face ID protection through a fluent interface.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Store and retrieve String or Data values in service- or server-scoped keychains

Keychain(service:) and Keychain(server:protocolType:) can use subscripts or set/get methods to persist credentials. This provides a small Swift API for moving tokens and passwords into Keychain rather than general application storage.

Sources: [2]

Configure accessibility, sharing, iCloud synchronization, and biometric policies

Accessibility, accessGroup, synchronizable, and authenticationPolicy settings can define how items are protected and shared. Face ID requires NSFaceIDUsageDescription, and the README warns that operations requiring authentication should run off the main thread.

Sources: [2]

Best fit

Fits iOS applications that keep tokens, credentials, and device secrets in Keychain

It is useful when applications need to store login tokens, API credentials, or device-specific secrets without spreading low-level Security framework calls throughout application code.

Sources: [2]

Before adoption

The latest release is from 2021, so verify it against current Swift and Xcode

The latest GitHub release is v4.2.2 from March 2021. Its Package.swift uses Swift tools 5.0 and declares iOS 8+. The repository was last pushed in May 2024, so current Swift/Xcode builds, strict-concurrency diagnostics, deployment settings, and runtime behavior should be verified before adoption.

Sources: [4][3][1]

Official sources

  1. [1]kishikawakatsumi/KeychainAccess — GitHub repository(2026-10-06)
  2. [2]KeychainAccess v4.2.2 — README(2026-10-06)
  3. [3]KeychainAccess v4.2.2 — Package.swift(2026-10-06)
  4. [4]KeychainAccess v4.2.2 release(2026-10-06)
  5. [5]KeychainAccess MIT license(2026-10-06)
Supplemental curator note

KeychainAccess fits iOS applications that store tokens and credentials in Keychain without directly using low-level Security framework APIs. The latest release is from 2021, so verify current Swift/Xcode builds and runtime behavior before adoption.

Try it in 3 steps

  1. 1

    Add KeychainAccess 4.2.2 with SwiftPM

    Pin the latest GitHub release. Because the release is old, verify it builds with the current Swift and Xcode toolchain first.

    .package(url: "https://github.com/kishikawakatsumi/KeychainAccess.git", exact: "4.2.2")
  2. 2

    Create a service-scoped Keychain

    Create a Keychain wrapper scoped to the application credential service.

    import KeychainAccess let keychain = Keychain(service: "com.example.app")
  3. 3

    Store and read an access token

    Use the set/get methods and confirm the credential path is backed by Keychain instead of general application storage.

    try keychain.set("token-value", key: "accessToken") let token = try keychain.get("accessToken")
Check the official README

Growth

Growth trends · Last 30 days

8,253 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
0
Open PRs
6

Development activity is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • keychain
  • touch-id
  • security
Stars
8,253
Forks
853
Watchers
130
Open issues
48
Contributors
27
Owner type
User
Primary language
Swift
License
MIT
Repository last updated
May 31, 2024
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?