RedMage1993 / KeychainManager

Provides an easy way to manage items in your keychain. Stores items as Data and requires the types of items being added conform to Codable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lets you manage items in your keychain. Encodes and decodes the items as Data, and therefore requires that the types of items being added conform to Codable.

let keychainManager: KeychainManager = .standard

keychainManager.accessGroup = <app access_group>

try keychainManager.clear()

let value: SomeCodableType = try keychainManager.value(key: "key")

try keychainManager.save(someValue, key: "key", accessibility: kSecAttrAccessibleAfterFirstUnlock)

About

Provides an easy way to manage items in your keychain. Stores items as Data and requires the types of items being added conform to Codable.

License:GNU General Public License v3.0


Languages

Language:Swift 100.0%