Skip to content

A really simple key-value wrapper for keychain.

License

Notifications You must be signed in to change notification settings

barnard-b/PlainKeychain

Repository files navigation

PlainKeychain

A really simple key-value wrapper for keychain.

Features

✅ Key-value pairs using kSecClassGenericPassword.

❌ Internet passwords (kSecClassInternetPassword).

❌ Biometric authentication (TouchID or FaceID).

❌ Cross-app access with kSecAttrAccessGroup.

Example

let keychain = PlainKeychain(service: "MyApp")

try keychain.setString("John", forKey: "nickname")

try keychain.getString(forKey: "nickname") // John

try keychain.deleteString(forKey: "nickname")