 //
 //  Keychain.swift
-//  falkor
+//  SimpleKeychain
 //
 //  Created by Tim Shadel on 11/10/15.
 //  Copyright © 2016 OC Tanner. All rights reserved.

        }
    }

    func optionalForKey<A>(key: String) throws -> A? {
        do {
            let a: A = try valueForKey(key)
            return a

        }
    }

    public func set(value: NSCoding, forKey key: String) throws {
        let data = NSKeyedArchiver.archivedDataWithRootObject(value)
        let query = [
            kSecClass as String       : kSecClassGenericPassword as String,
