Latest 3.0.4
Homepage https://github.com/JuanjoArreola/KeychainStore
License MIT
Platforms ios 8.0, requires ARC
Authors

Swift 3 Framework to access the Keychain

Cocoapods
Platform
License
codebeat badge

Usage

KeychainStore<T: Codable> is a generic class that stores instances of classes that conform to the Codable protocol

let store = KeychainStore<Card>(account: "test")
let card = Card(number: "4111111111111111", name: "Me")

// save card:
try store.set(object: card, forKey: "my card")
//  or:
try store.set(object: card, forKey: "my card", accessibility: .whenPasscodeSetThisDeviceOnly)

// get card
let card = try store.object(forKey: "my card")

Additionally, the class KeychainStringStore saves String instances in the Keychain.

Latest podspec

{
    "name": "KeychainStore",
    "version": "3.0.4",
    "summary": "Swift Framework to access the Keychain in iOS",
    "homepage": "https://github.com/JuanjoArreola/KeychainStore",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Juanjo Arreola": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/JuanjoArreola/KeychainStore.git",
        "tag": "3.0.4"
    },
    "source_files": "Sources/KeychainStore/*.swift",
    "requires_arc": true,
    "swift_versions": "4.1"
}

Pin It on Pinterest

Share This