{"id":24665614,"url":"https://github.com/0xwdg/securestorage","last_synced_at":"2026-03-05T04:02:07.820Z","repository":{"id":274189055,"uuid":"922178239","full_name":"0xWDG/SecureStorage","owner":"0xWDG","description":"SecureStorage is a property wrapper around the keychain to easily access your protected data.","archived":false,"fork":false,"pushed_at":"2025-03-13T18:51:55.000Z","size":304,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-23T10:41:44.864Z","etag":null,"topics":["0xwdg","hacktoberfest","keychain","propertywrapper","securestorage","swift","swiftui"],"latest_commit_sha":null,"homepage":"https://0xwdg.github.io/SecureStorage/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xWDG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"0xWDG"}},"created_at":"2025-01-25T14:29:22.000Z","updated_at":"2025-10-22T14:38:28.000Z","dependencies_parsed_at":"2025-01-25T15:37:21.777Z","dependency_job_id":null,"html_url":"https://github.com/0xWDG/SecureStorage","commit_stats":null,"previous_names":["0xwdg/securestorage"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xWDG/SecureStorage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FSecureStorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FSecureStorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FSecureStorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FSecureStorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xWDG","download_url":"https://codeload.github.com/0xWDG/SecureStorage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FSecureStorage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30109076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["0xwdg","hacktoberfest","keychain","propertywrapper","securestorage","swift","swiftui"],"created_at":"2025-01-26T07:12:54.567Z","updated_at":"2026-03-05T04:02:07.791Z","avatar_url":"https://github.com/0xWDG.png","language":"Swift","funding_links":["https://github.com/sponsors/0xWDG"],"categories":[],"sub_categories":[],"readme":"# SecureStorage\n\nSecureStorage is a property wrapper around the keychain to easily access your protected data.\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2F0xWDG%2FSecureStorage%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/0xWDG/SecureStorage)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2F0xWDG%2FSecureStorage%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/0xWDG/SecureStorage)\n[![Swift Package Manager](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://swift.org/package-manager)\n![License](https://img.shields.io/github/license/0xWDG/SecureStorage)\n\n## Requirements\n\n- Swift 5.9+ (Xcode 15+)\n- iOS 13+, macOS 10.15+\n\n## Installation (Pakage.swift)\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/0xWDG/SecureStorage.git\", branch: \"main\"),\n],\ntargets: [\n    .target(name: \"MyTarget\", dependencies: [\n        .product(name: \"SecureStorage\", package: \"SecureStorage\"),\n    ]),\n]\n```\n\n## Installation (Xcode)\n\n1. In Xcode, open your project and navigate to **File** → **Swift Packages** → **Add Package Dependency...**\n2. Paste the repository URL (`https://github.com/0xWDG/SecureStorage`) and click **Next**.\n3. Click **Finish**.\n\n## Usage\n\n```swift\nimport SwiftUI\nimport SecureStorage\n\nstruct ContentView: View {\n    // For this example, we directly bind the username \u0026 password.\n    // This is not smart to do, because you'll overwrite the values as you type.\n    @SecureStorage(\"username\")\n    var username: String?\n\n    @SecureStorage(\"password\")\n    var password: String?\n\n    var body: some View {\n        VStack {\n            Text(\"Please login\")\n            TextField(\"Username\", text: $username ?? \"\")\n            SecureField(\"Password\", text: $password ?? \"\")\n\n            Button(\"Login\") {\n                print(\"Login\", username, password)\n            }\n            Button(\"Delete username\") {\n                SecureStorage(\"username\").delete()\n            }\n            Button(\"Delete password\") {\n                SecureStorage(\"password\").delete()\n            }\n            Button(\"Delete username\") {\n                SecureStorage(\"*\").deleteAll()\n            }\n        }\n    }\n}\n```\n\n## Contact\n\n🦋 [@0xWDG](https://bsky.app/profile/0xWDG.bsky.social)\n🐘 [mastodon.social/@0xWDG](https://mastodon.social/@0xWDG)\n🐦 [@0xWDG](https://x.com/0xWDG)\n🧵 [@0xWDG](https://www.threads.net/@0xWDG)\n🌐 [wesleydegroot.nl](https://wesleydegroot.nl)\n🤖 [Discord](https://discordapp.com/users/918438083861573692)\n\nInterested learning more about Swift? [Check out my blog](https://wesleydegroot.nl/blog/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xwdg%2Fsecurestorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xwdg%2Fsecurestorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xwdg%2Fsecurestorage/lists"}