Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 511 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 511 Bytes

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")