{"id":46858088,"url":"https://github.com/pando85/soft-fido2","last_synced_at":"2026-03-10T17:36:55.742Z","repository":{"id":325156107,"uuid":"1100040974","full_name":"pando85/soft-fido2","owner":"pando85","description":"A pure Rust implementation of FIDO2/WebAuthn CTAP 2.0/2.1/2.2 protocol","archived":false,"fork":false,"pushed_at":"2026-02-27T03:09:35.000Z","size":619,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-27T09:53:16.169Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pando85.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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-11-19T19:02:52.000Z","updated_at":"2026-02-27T03:09:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pando85/soft-fido2","commit_stats":null,"previous_names":["pando85/soft-fido2"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/pando85/soft-fido2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pando85%2Fsoft-fido2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pando85%2Fsoft-fido2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pando85%2Fsoft-fido2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pando85%2Fsoft-fido2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pando85","download_url":"https://codeload.github.com/pando85/soft-fido2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pando85%2Fsoft-fido2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30344710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-03-10T17:36:55.079Z","updated_at":"2026-03-10T17:36:55.722Z","avatar_url":"https://github.com/pando85.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 style=\"font-size: 64px; margin: 0\"\u003e\u003cspan style=\"color: #de6e1c; font-size: 88px; line-height: 0.9;\"\u003e🦀\u003c/span\u003e \u003cspan style=\"color: inherit; font-size: 48px; vertical-align: middle;\"\u003esoft-fido2\u003c/span\u003e\u003c/h1\u003e\n\n![Build status](https://img.shields.io/github/actions/workflow/status/pando85/soft-fido2/rust.yml?branch=master)\n[![Crates.io](https://img.shields.io/crates/v/soft-fido2.svg)](https://crates.io/crates/soft-fido2)\n[![Documentation](https://docs.rs/soft-fido2/badge.svg)](https://docs.rs/soft-fido2)\n[![License](https://img.shields.io/badge/license-GPL--3.0-blue.svg)](LICENSE)\n\nA pure Rust implementation of FIDO2/WebAuthn CTAP 2.0/2.1/2.2 protocol.\n\n**soft-fido2** provides both **authenticator** and **client** FIDO2 capabilities for complete\nWebAuthn authentication flows.\n\n## Features\n\n- **Full CTAP 2.0/2.1/2.2 Protocol** - Complete implementation of FIDO2 Authenticator Protocol\n- **no_std Support** - Core protocol and cryptography work in embedded environments\n- **Multiple Transports** - USB HID and Linux UHID virtual device support\n- **Testing-First** - Designed for WebAuthn integration testing and development\n- **Well-Audited Crypto** - Uses industry-standard cryptographic libraries (p256, sha2, aes)\n\n## Architecture\n\nsoft-fido2 is organized into four main crates:\n\n```\nsoft-fido2/\n├── soft-fido2           # High-level API and examples\n├── soft-fido2-crypto    # Cryptographic primitives (ECDSA, ECDH, PIN protocols)\n├── soft-fido2-ctap      # CTAP 2.0/2.1 protocol implementation\n└── soft-fido2-transport # Transport layers (USB HID, UHID)\n```\n\n### Crate Overview\n\n| Crate                                          | Description                                   | no_std          |\n| ---------------------------------------------- | --------------------------------------------- | --------------- |\n| [`soft-fido2`](soft-fido2)                     | High-level API combining all components       | Core only    |\n| [`soft-fido2-crypto`](soft-fido2-crypto)       | P-256 ECDSA/ECDH, PIN protocols V1/V2         | Yes          |\n| [`soft-fido2-ctap`](soft-fido2-ctap)           | CTAP command handlers and authenticator logic | Yes          |\n| [`soft-fido2-transport`](soft-fido2-transport) | USB HID and UHID transport implementations    | Requires std |\n\n## Documentation\n\nComprehensive documentation is available on\n[docs.rs/soft-fido2](https://docs.rs/crate/soft-fido2/latest).\n\n## Examples\n\nThe [`soft-fido2/examples`](soft-fido2/examples) directory contains several complete examples. Check\nthem out to see how to use the library!\n\nRun examples:\n\n```bash\n# Run virtual authenticator (requires UHID permissions)\ncargo run --example virtual_authenticator\n\n# Complete WebAuthn flow\ncargo run --example webauthn_flow\n```\n\n### UHID Requirements (Linux only)\n\nMake sure you have the uhid kernel module loaded and proper permissions.\n\nRun the following commands as root:\n\n```bash\nmodprobe uhid\necho uhid \u003e /etc/modules-load.d/fido.conf\ngroupadd fido 2\u003e/dev/null || true\nusermod -a -G fido $YOUR_USERNAME\necho 'KERNEL==\"uhid\", GROUP=\"fido\", MODE=\"0660\"' \u003e /etc/udev/rules.d/90-uinput.rules\nudevadm control --reload-rules \u0026\u0026 udevadm trigger\n```\n\n## Projects Using soft-fido2\n\n- **[passless](https://github.com/pando85/passless)** - Virtual FIDO2 device and client FIDO 2\n  utility, it runs as a virtual UHID device on Linux.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. For major changes, please open\nan issue first to discuss what you would like to change.\n\n### Development Setup\n\n```bash\n# Clone repository\ngit clone https://github.com/pando85/soft-fido2\ncd soft-fido2\n\n# Install pre-commit hooks\nmake pre-commit-install\n\n# Run formatting and linting\nmake lint\n\n# Run tests\nmake test\n\n# Run end-to-end tests (requires UHID permissions)\nmake test-e2e\n```\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file\nfor details.\n\n## References\n\n- [FIDO2 CTAP Specification](https://fidoalliance.org/specs/fido-v2.1-ps-20210615/)\n- [WebAuthn Specification](https://www.w3.org/TR/webauthn-2/)\n- [COSE (CBOR Object Signing and Encryption)](https://tools.ietf.org/html/rfc8152)\n\n**Note:** This is a community project and is not affiliated with the FIDO Alliance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpando85%2Fsoft-fido2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpando85%2Fsoft-fido2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpando85%2Fsoft-fido2/lists"}