https://github.com/sonsongithub/minikeychain
Keychain library for reddift
https://github.com/sonsongithub/minikeychain
Last synced: about 2 months ago
JSON representation
Keychain library for reddift
- Host: GitHub
- URL: https://github.com/sonsongithub/minikeychain
- Owner: sonsongithub
- License: other
- Created: 2016-08-17T09:39:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-03T01:42:10.000Z (over 6 years ago)
- Last Synced: 2025-03-05T19:17:39.278Z (3 months ago)
- Language: Swift
- Size: 56.6 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://cocoadocs.org/docsets/MiniKeychain)
[](http://cocoadocs.org/docsets/MiniKeychain)
[](http://cocoadocs.org/docsets/MiniKeychain)# MiniKeychain
Keychain library for [reddift](https://github.com/sonsongithub/reddift).
MiniKeychain is developed based on [KeychainAccess](https://github.com/kishikawakatsumi/KeychainAccess).# How to use
```
let keychain = MiniKeychain(service: "com.sonson.MiniKeychain")
let name = "name"
let password = "password"
if let data = password.data(using: .utf8) {
do {
try keychain.save(key: name, data: data)
} catch {
print(error)
}
}
```# License
MIT license.