{"id":21846600,"url":"https://github.com/binarybirds/swift-bcrypt","last_synced_at":"2026-05-16T20:31:24.192Z","repository":{"id":221344652,"uuid":"753659250","full_name":"BinaryBirds/swift-bcrypt","owner":"BinaryBirds","description":"Swift BCrypt implementation for securely hashing and verifying passwords using adaptive cost factors, random salts, and constant-time comparison.","archived":false,"fork":false,"pushed_at":"2026-02-11T08:10:24.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-11T15:20:58.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"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/BinaryBirds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-02-06T14:58:20.000Z","updated_at":"2026-02-11T08:10:26.000Z","dependencies_parsed_at":"2024-02-27T20:56:31.212Z","dependency_job_id":null,"html_url":"https://github.com/BinaryBirds/swift-bcrypt","commit_stats":null,"previous_names":["binarybirds/swift-bcrypt"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/BinaryBirds/swift-bcrypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryBirds%2Fswift-bcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryBirds%2Fswift-bcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryBirds%2Fswift-bcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryBirds%2Fswift-bcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BinaryBirds","download_url":"https://codeload.github.com/BinaryBirds/swift-bcrypt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryBirds%2Fswift-bcrypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33117823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: 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":[],"created_at":"2024-11-27T23:14:40.913Z","updated_at":"2026-05-16T20:31:24.187Z","avatar_url":"https://github.com/BinaryBirds.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift BCrypt\n\nSwift BCrypt implementation for securely hashing and verifying passwords using\nadaptive cost factors, random salts, and constant-time comparison.\n\n[![Release: 2.0.1](https://img.shields.io/badge/Release-2.0.1-F05138)]( https://github.com/binarybirds/swift-bcrypt/releases/tag/2.0.1)\n\n## Requirements\n\n![Swift 6.1+](https://img.shields.io/badge/Swift-6%2E1%2B-F05138)\n![Platforms: macOS, iOS, tvOS, watchOS, visionOS](https://img.shields.io/badge/Platforms-macOS_%7C_iOS_%7C_tvOS_%7C_watchOS_%7C_visionOS-F05138)\n\n- Swift 6.1+\n- Platforms:\n  - macOS 15+\n  - iOS 18+\n  - tvOS 18+\n  - watchOS 11+\n  - visionOS 2+\n\n## Installation\n\nUse Swift Package Manager; add the dependency to your `Package.swift` file:\n\n```swift\n.package(url: \"https://github.com/binarybirds/swift-bcrypt\", exact: \"2.0.1\"),\n```\n\nThen add `Bcrypt` to your target dependencies:\n\n```swift\n.product(name: \"Bcrypt\", package: \"swift-bcrypt\"),\n```\n\nUpdate the packages and you are ready.\n\n## Usage\n\n[![DocC API documentation](https://img.shields.io/badge/DocC-API_documentation-F05138)](https://binarybirds.github.io/swift-bcrypt)\n\nAPI documentation is available at the following link. Refer to the mock objects in the Tests directory if you want to build a custom database driver implementation.\n\n## Usage example\n\n```swift\nimport Bcrypt\n\nlet digest = try Bcrypt.hash(\"binary-birds\", cost: 6)\nlet res = try Bcrypt.verify(\"binary-birds\", created: digest)\n```\n\n## Development\n\n- Build: `swift build`\n- Test:\n  - local: `swift test`\n  - using Docker: `make docker-test`\n- Format: `make format`\n- Check: `make check`\n\n## Contributing\n\n[Pull requests](https://github.com/binarybirds/swift-bcrypt/pulls) are welcome. Please keep changes focused and include tests for new logic.\n\n## Credits\n\nThis code is derived from the Vapor web framework:\n\n- [Vapor](https://github.com/vapor/vapor)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarybirds%2Fswift-bcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinarybirds%2Fswift-bcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarybirds%2Fswift-bcrypt/lists"}