Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 576 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 576 Bytes

KeychainWrapper

A very simple wrapper around the iOS keychain.

Usage

First instantiate KeychainWrapper, then use the instance to create, read or delete keychain entries, e.g.:

let keychainWrapper = KeychainWrapper(service: "myApp")

// store password <-> username mapping for service "myApp"
keychainWrapper["username"] = "secretPassword"

// retrieve password for username
let password = keychainWrapper["username"]

// delete password entry for username in service "myApp"
keychainWrapper["username"] = nil

License

See LICENSE.md.