A keychain wrapper that is so easy to use that your cat could use it.

Overview

⚠️ DEPRECATED, NO LONGER MAINTAINED

Keychains

Version Carthage Compatible License Platform Swift

A keychain wrapper that is so easy to use that your cat could use it.

Usage

// Save and/or update a password
Keychain.setPassword(password, forAccount: account)

// Get a password
Keychain.password(forAccount:account)

// Delete a password
Keychain.deletePassword(forAccount: account)

Installation

Keychains is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Keychains'

Keychain is also available through Carthage. To install just write into your Cartfile:

github "hyperoslo/Keychains"

Author

Hyper Interaktiv AS, [email protected]

License

Keychains is available under the MIT license. See the LICENSE file for more info.

Comments
  • Public API

    Public API

    I've been thinking about the public API, does it have to reference the pod name or could we call the main struct Keychain instead to make it more implicit to what it actually does?

    So instead of;

    Stash.password(service, account: account)
    

    We would get

    Keychain.password(service, account: account)
    

    Also, maybe the service should be the second argument and have it default to the application bundle identifier so that you don't have to set it.

    Keychain.password(forAccount: account)
    

    What do you guys think? @RamonGilabert @vadymmarkov @attila-at-hyper

    opened by zenangst 7
  • Feature Stash core foundation

    Feature Stash core foundation

    With this PR, Stash can get, insert, update and delete password from the keychain.

    Insert and update both use the same method which looks like this;

    Stash.setPassword(password, service: service, account: account)
    

    Deleting a password for a service & account looks like this;

    Stash.delete(service, account: account)
    

    And finally, when you want to get the password you use;

    Stash.password(service, account: account)
    

    Pretty straight forward, could probably be improve in terms of the public API but this is a start.

    opened by zenangst 2
  • Move the project to Swift 4

    Move the project to Swift 4

    The only change necessary in the code is to move the budleIdentifier static property in the public space for using it as a default parameter.

    In addition to that I've clean up the project settings and update the podspec file for updating the swift version

    opened by JGiola 1
  • Adds support for Keychain Sharing Acess Groups

    Adds support for Keychain Sharing Acess Groups

    This pull request is a proposal to add in support for Keychain Sharing access groups. It does change the query from a let to a var which I had seen you already refactored once in the commit history so if there is perhaps a better way to achieve this I would love more of a discussion. Thanks!

    opened by dirtdon 1
  • Remove method duplication

    Remove method duplication

    We had two password and setPassword methods.

    Now we only have one of each and the last label accessGroup defaults to an empty string so nothing should change for the user.

    opened by zenangst 0
Releases(2.0.0)
  • 2.0.0(Oct 20, 2017)

  • 1.0.0(Jun 19, 2017)

Owner
HyperRedink
Connected creativity
HyperRedink
Keychain - Keychain wrapper with swift

Keychain wrapper. Store a value as a generic password: let account = "an-arbitra

Alejandro Ramirez 0 Mar 14, 2022
Valet lets you securely store data in the iOS, tvOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy. We promise.

Valet Valet lets you securely store data in the iOS, tvOS, watchOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy.

Square 3.8k Jan 4, 2023
A Layer-2 framework built over Keychain API which helps in using Keychain in all your Apple devices with easiness and flexibility.

Keychain Manager Keychain Manager is a Layer-2 framework built over Keychain API which helps in using Keychain in all your Apple devices with easiness

Gokul Nair 14 Jan 1, 2023
A simple wrapper for the iOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift.

SwiftKeychainWrapper A simple wrapper for the iOS / tvOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift. Prov

Jason 1.5k Jan 8, 2023
Simple Swift wrapper for Keychain that works on iOS, watchOS, tvOS and macOS.

KeychainAccess KeychainAccess is a simple Swift wrapper for Keychain that works on iOS and OS X. Makes using Keychain APIs extremely easy and much mor

Kishikawa Katsumi 7.2k Jan 5, 2023
Simple Objective-C wrapper for the keychain that works on Mac and iOS

SAMKeychain SAMKeychain is a simple wrapper for accessing accounts, getting passwords, setting passwords, and deleting passwords using the system Keyc

Sam Soffes 5.4k Jan 8, 2023
Modern Swift wrapper for Keychain Services API with the benefits of static typing

SwiftyKeychainKit SwiftyKeychainKit is a simple Swift wrapper for Keychain Services API with the benefits of static typing. Define your keys in one pl

Andriy Slyusar 18 Jan 1, 2023
A powerful, protocol-oriented library for working with the keychain in Swift.

Locksmith A powerful, protocol-oriented library for working with the keychain in Swift. ?? iOS 8.0+ ?? Mac OS X 10.10+ ⌚️ watchOS 2 ?? tvOS ?? I make

Matthew Palmer 2.9k Dec 21, 2022
Recover lost keychain passwords with swift

brutalkeychain Recover lost keychain passwords using a simple swift script (so c

Charles Edge 9 Sep 12, 2022
Recover lost keychain passwords with swift

brutalkeychain Recover lost keychain passwords using a simple swift script (so c

Charles Edge 4 Dec 24, 2021
Example of using TOTP with iCloud Keychain in iOS 15

Installation This example needs Ngrok and Ruby 3.0.3+. Setup project with Makefi

Makeeyaf 0 Dec 31, 2021
A tool to check which keychain items are available to an attacker once an iOS device has been jailbroken

Keychain Dumper Usage All that should be needed to use keychain_dumper is the binary that is checked in to the Keychain-Dumper Git repository. This bi

Patrick Toomey 1.2k Dec 28, 2022
Keep track of accessibility settings, leverage high contrast colors, and use scalable fonts to enable users with disabilities to use your app.

Accessibility for iOS, macOS, tvOS, and watchOS ?? What's new in Capable 2.0 ?? Here are the most important changes: ?? New framework architecture and

Christoph Wendt 230 Jan 4, 2023
UICKeyChainStore is a simple wrapper for Keychain on iOS, watchOS, tvOS and macOS. Makes using Keychain APIs as easy as NSUserDefaults.

UICKeyChainStore UICKeyChainStore is a simple wrapper for Keychain that works on iOS and OS X. Makes using Keychain APIs as easy as NSUserDefaults. Lo

Kishikawa Katsumi 3.1k Dec 28, 2022
Keychain - Keychain wrapper with swift

Keychain wrapper. Store a value as a generic password: let account = "an-arbitra

Alejandro Ramirez 0 Mar 14, 2022
Valet lets you securely store data in the iOS, tvOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy. We promise.

Valet Valet lets you securely store data in the iOS, tvOS, watchOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy.

Square 3.8k Jan 4, 2023
A Layer-2 framework built over Keychain API which helps in using Keychain in all your Apple devices with easiness and flexibility.

Keychain Manager Keychain Manager is a Layer-2 framework built over Keychain API which helps in using Keychain in all your Apple devices with easiness

Gokul Nair 14 Jan 1, 2023
What if you could give your wallpapers, a little touch? On the fly, of course

Amēlija On the fly preferences. Features Custom Blurs for your LockScreen. Custom Blurs for your HomeScreen. Blur Types Epic (Gaussian). Dark. Light.

null 9 Dec 2, 2022
Valet lets you securely store data in the iOS, tvOS, or macOS Keychain without knowing a thing about how the Keychain works.

Valet Valet lets you securely store data in the iOS, tvOS, watchOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy.

Square 3.8k Jan 4, 2023
FlexibleImage is implemented with the hope that anyone could easily develop an app that provides features such as Camera Filter and Theme.

FlexibleImage is implemented with the hope that anyone could easily develop an app that provides features such as Camera Filter and Theme. When you wr

Jungwon An 815 Dec 30, 2022