Latest 1.0.0
Homepage https://github.com/Wasappli/WAKeychain
License MIT
Platforms ios 7.0, requires ARC
Dependencies SSKeychain
Authors

Version
License
Platform

Developed and Maintained by ipodishima Founder & CTO at Wasappli Inc.

This class is a wrapper on top of SSKeychain which is already a wrapper for Apple Keychain.
This wrapper has been built to avoid requesting the keychain too frequently. I ran into issues with debugging and accessing the keychain very often, then I wrote this little piece of code.

  • It keeps the password on RAM
  • It can save it on NSUserDefaults not securely if needed. For example, a user password could not be save not securely, but an access token would

Install and use

Cocoapods

Use Cocoapods, this is the easiest way to install it.

pod 'WAKeychain'

#import <WAKeychain/WAKeychain.h>

Use any of the following method

+ (NSString *)passwordForService:(NSString *)serviceName account:(NSString *)account;

+ (BOOL)setPassword:(NSString *)password forService:(NSString *)serviceName account:(NSString *)account;

+ (BOOL)setPassword:(NSString *)password forService:(NSString *)serviceName account:(NSString *)account canSaveNotSecurely:(BOOL)canSaveNotSecurely;

+ (BOOL)deletePasswordForService:(NSString *)serviceName account:(NSString *)account;

Contributing : Problems, Suggestions, Pull Requests?

Please open a new Issue here if you run into a problem specific to WAKeychain.

For new features pull requests are encouraged and greatly appreciated! Please try to maintain consistency with the existing code style. If you’re considering taking on significant changes or additions to the project, please ask me before by opening a new issue to have a chance for a merge.
Please also run the tests before ;)

That’s all folks !

  • If your are happy don’t hesitate to send me a tweet @ipodishima!
  • Distributed under MIT licence.
  • Follow Wasappli on facebook

Latest podspec

{
    "name": "WAKeychain",
    "version": "1.0.0",
    "summary": "A wrapper on top of SSKeychain which keeps the values in RAM",
    "homepage": "https://github.com/Wasappli/WAKeychain",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Marian Paul": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Wasappli/WAKeychain.git",
        "tag": "1.0.0"
    },
    "source_files": "Files/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "SSKeychain": []
    }
}

Pin It on Pinterest

Share This