Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sentryco/secuserstore
Secure user store
https://github.com/sentryco/secuserstore
Last synced: about 1 month ago
JSON representation
Secure user store
- Host: GitHub
- URL: https://github.com/sentryco/secuserstore
- Owner: sentryco
- License: mit
- Created: 2024-11-01T15:05:20.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-25T01:12:46.000Z (3 months ago)
- Last Synced: 2024-11-25T02:19:39.848Z (3 months ago)
- Language: Swift
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/sentryco/SecUserStore/actions/workflows/Tests.yml)
[](https://codebeat.co/projects/github-com-sentryco-secuserstore-main)# SecUserStore
> Secure user store
## Description
Utilizes keychain to securely store sensitive user data.
## Problem
Regular UserDefault are not secure by default. It's possible to extract them with third party software.
## Solution
This library works like userdefault, with its easy to use interface but under the hood stores the user data in keychain.
## ExamplesMinimal implementation for setting up a secure user default.
```swift
struct PrefsStore: SecUserStoreKind {
var useBioAuth: Bool
var usePassword: Bool
static var key: String { "secure-prefs-store" }
static var defaultModel: PrefsStore {
.init(useBioAuth: false, useBioAuth: false)
}
}
```## Todo
- Add more description
- Clean up comments
- Add info regarding limitations with some variable. Bools etc.
- Add dependency declaration in the readme
- Consider adding the simpler keychain kit from telemetry etc