{"id":51038322,"url":"https://github.com/durellwilson/swift-security-toolkit","last_synced_at":"2026-06-22T08:32:30.008Z","repository":{"id":324441889,"uuid":"1087332927","full_name":"durellwilson/swift-security-toolkit","owner":"durellwilson","description":"Production-ready security utilities for Swift/SwiftUI - Keychain, biometrics, input validation, network security","archived":false,"fork":false,"pushed_at":"2025-11-15T20:03:43.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-15T22:06:47.396Z","etag":null,"topics":["biometrics","cybersecurity","detroit","devrel","keychain","security","swift","swiftui"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/durellwilson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-31T18:25:29.000Z","updated_at":"2025-11-15T20:03:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/durellwilson/swift-security-toolkit","commit_stats":null,"previous_names":["durellwilson/swift-security-toolkit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/durellwilson/swift-security-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/durellwilson%2Fswift-security-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/durellwilson%2Fswift-security-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/durellwilson%2Fswift-security-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/durellwilson%2Fswift-security-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/durellwilson","download_url":"https://codeload.github.com/durellwilson/swift-security-toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/durellwilson%2Fswift-security-toolkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34641636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["biometrics","cybersecurity","detroit","devrel","keychain","security","swift","swiftui"],"created_at":"2026-06-22T08:32:27.042Z","updated_at":"2026-06-22T08:32:29.998Z","avatar_url":"https://github.com/durellwilson.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift Security Toolkit\n\nProduction-ready security utilities for Swift/SwiftUI applications. Built for Detroit's cybersecurity and DevRel community.\n\n## 🔒 Features\n\n### Secure Storage\n- Keychain integration\n- Encrypted data storage\n- Device-only access\n- Actor-based thread safety\n\n### Input Validation\n- Email validation\n- XSS prevention\n- SQL injection detection\n- Input sanitization\n\n### Biometric Authentication\n- Face ID / Touch ID support\n- Async/await API\n- Type detection\n- Error handling\n\n### Network Security\n- Certificate pinning\n- Secure requests\n- Timeout handling\n- Response validation\n\n## 📦 Installation\n\n### Swift Package Manager\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/durellwilson/swift-security-toolkit.git\", from: \"1.0.0\")\n]\n```\n\n## 🚀 Quick Start\n\n### Secure Storage\n\n```swift\nimport SwiftSecurityToolkit\n\nlet storage = SecureStorage()\n\n// Store sensitive data\nlet apiKey = \"secret-key\".data(using: .utf8)!\ntry await storage.store(apiKey, key: \"api_key\")\n\n// Retrieve\nlet retrieved = try await storage.retrieve(key: \"api_key\")\n\n// Delete\ntry await storage.delete(key: \"api_key\")\n```\n\n### Input Validation\n\n```swift\nlet validator = InputValidator()\n\n// Validate email\nlet isValid = validator.validateEmail(\"user@example.com\") // true\n\n// Sanitize input\nlet clean = validator.sanitizeInput(\"\u003cscript\u003ealert('xss')\u003c/script\u003e\") // \"\"\n\n// Detect injection\nlet hasInjection = validator.detectInjection(\"'; DROP TABLE users--\") // true\n```\n\n### Biometric Auth\n\n```swift\nlet auth = BiometricAuth()\n\n// Check type\nlet type = await auth.biometricType() // .faceID or .touchID\n\n// Authenticate\nlet success = try await auth.authenticate(reason: \"Unlock app\")\n```\n\n### Network Security\n\n```swift\nlet network = NetworkSecurity()\n\n// Secure request\nlet data = try await network.secureRequest(url: URL(string: \"https://api.example.com\")!)\n```\n\n## 🎯 Use Cases\n\n### Mobile Banking\n- Secure credential storage\n- Biometric authentication\n- Certificate pinning for API calls\n\n### Healthcare Apps\n- HIPAA-compliant data storage\n- Patient data encryption\n- Secure network communication\n\n### Enterprise Apps\n- SSO integration\n- Input validation\n- Audit logging\n\n## 🏗️ Architecture\n\n- **Actor-based**: Thread-safe by design\n- **Async/await**: Modern concurrency\n- **Protocol-oriented**: Easy to mock/test\n- **Zero dependencies**: Pure Swift/Foundation\n\n## 🧪 Testing\n\n```bash\nswift test\n```\n\n## 📊 Performance\n\n- Keychain operations: \u003c10ms\n- Input validation: \u003c1ms\n- Biometric auth: ~500ms (system)\n- Network requests: Depends on latency\n\n## 🤝 Contributing\n\nBuilt for Detroit's open source community. Contributions welcome!\n\n1. Fork repository\n2. Create feature branch\n3. Add tests\n4. Submit PR\n\n## 📝 License\n\nMIT License\n\n## 🌟 Detroit DevRel\n\nPart of Detroit's Swift and cybersecurity education initiative.\n\n**Related Projects**:\n- [Security Awareness Course](https://github.com/durellwilson/security-awareness-course)\n- [Detroit Tech Equity](https://github.com/durellwilson/DetroitTechEquity)\n- [ML Text Kit](https://github.com/durellwilson/ml-text-kit)\n\n---\n\n**Built with ❤️ in Detroit** 🏭\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdurellwilson%2Fswift-security-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdurellwilson%2Fswift-security-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdurellwilson%2Fswift-security-toolkit/lists"}