Latest 0.0.1
Homepage https://github.com/GrayLand119/GLKeychain
License Apache
Platforms ios , requires ARC
Authors

Keychain 有哪些功能

Keychain – Apple文档

Apple 提供的 Keychain 服务 主要用来存取密码, 总的来说有以下功能:

  • 在多用户之间管理密码
  • 在多端之间管理密码
  • 在网页中代替输入密码

GLKeychain 使用

快捷使用 Keychain 来管理您的密码. 目前只支持 iOS.

1 初始化

[[GLKeychain defaultManager] setupKeyChain]; // 初始化
[[GLKeychain defaultManager] changeToAccount:@"FakerUser10001"]; // 切换账户, 请自定义
[[GLKeychain defaultManager] changeToService:@"MyLoginService"]; // 切换服务, 请自定义

2 读/写密码

[[GLKeychain defaultManager] savePassword:@"新密码"]; // 写密码
NSString *pwd = [[GLKeychain defaultManager] readPassword]; // 读密码

安装

pod ‘GLKeychain’, ‘~> 0.0.1’

或

pod 'GLKeychain', :git => 'https://github.com/GrayLand119/GLKeychain.git'

Demo

DemoImage

License

GLKeychain is released under the Apache license. See LICENSE for details.

Latest podspec

{
    "name": "GLKeychain",
    "version": "0.0.1",
    "summary": "iOS u4e0bu5febu6377u4f7fu7528 KeyChain u670du52a1u6765u7ba1u7406u60a8u7684u4ee3u7801",
    "license": {
        "type": "Apache",
        "file": "LICENSE.md"
    },
    "homepage": "https://github.com/GrayLand119/GLKeychain",
    "screenshots": "https://github.com/GrayLand119/GLKeychain/blob/master/GLKeychainDemo01.png",
    "authors": {
        "GrayLand": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/GrayLand119/GLKeychain.git",
        "tag": "0.0.1"
    },
    "source_files": "GLKeychainDemo/GLKeychainDemo/GLKeychain/**/*.{h,m}",
    "ios": {
        "frameworks": "Security"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This