KeychainSimple

1.3.0

Read and write to the keychain.
cenkbilgen/KeychainSimple

What's New

1.3.0

2024-12-13T21:04:43Z

KeychainSimple

Just saves and reads back String type values to the Keychain.

let keychainAccess = KeychainAccess(itemNamePrefix: "com.myname.myapp")

/* Save a value */
try keychainAccess.save(id: "key1", value: "ABC123")

/* Read it back later */
let value = keychainAccess.read(id: "key1")

NOTE: The intended target for this package is macOS command-line tools, but it works fine with UI apps also.

For iOS and other platforms the LocalAuthentication code may need some updates, but maybe not. Certainly some Info.plist values related to LocalAuthentication need to be added to the host app though.

Description

  • Swift Tools
View More Packages from this Author

Dependencies

  • None
Last updated: Mon May 12 2025 11:45:42 GMT-0900 (Hawaii-Aleutian Daylight Time)