{"id":13683578,"url":"https://github.com/mozilla/authenticator-rs","last_synced_at":"2025-05-14T07:10:01.864Z","repository":{"id":37865425,"uuid":"86860244","full_name":"mozilla/authenticator-rs","owner":"mozilla","description":"Rust library to interact with Security Keys, used by Firefox","archived":false,"fork":false,"pushed_at":"2024-12-13T17:14:59.000Z","size":1317,"stargazers_count":289,"open_issues_count":51,"forks_count":71,"subscribers_count":13,"default_branch":"ctap2-2021","last_synced_at":"2025-04-29T10:28:58.647Z","etag":null,"topics":["hid","rust","u2f"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/authenticator","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mozilla.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}},"created_at":"2017-03-31T21:03:21.000Z","updated_at":"2025-04-25T16:46:46.000Z","dependencies_parsed_at":"2022-07-09T03:47:06.290Z","dependency_job_id":"291104c0-7e0e-480b-87c8-dd9a948ceb87","html_url":"https://github.com/mozilla/authenticator-rs","commit_stats":{"total_commits":530,"total_committers":40,"mean_commits":13.25,"dds":0.7169811320754718,"last_synced_commit":"1959330d9015645b2bf040f7689b7db1c12f429e"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fauthenticator-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fauthenticator-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fauthenticator-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fauthenticator-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozilla","download_url":"https://codeload.github.com/mozilla/authenticator-rs/tar.gz/refs/heads/ctap2-2021","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252248596,"owners_count":21717954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hid","rust","u2f"],"created_at":"2024-08-02T13:02:16.209Z","updated_at":"2025-05-14T07:10:01.820Z","avatar_url":"https://github.com/mozilla.png","language":"Rust","funding_links":[],"categories":["Rust","rust"],"sub_categories":[],"readme":"# A Rust library for interacting with CTAP1/CTAP2 Security Keys\n\n[![Build Status](https://travis-ci.org/mozilla/authenticator-rs.svg?branch=master)](https://travis-ci.org/mozilla/authenticator-rs)\n![Maturity Level](https://img.shields.io/badge/maturity-release-green.svg)\n\nThis is a cross-platform library for interacting with Security Key-type devices via Rust.\n\n* **Supported Platforms**: Windows, Linux, FreeBSD, NetBSD, OpenBSD, and macOS.\n* **Supported Transports**: USB HID.\n* **Supported Protocols**: [FIDO U2F over USB](https://fidoalliance.org/specs/fido-u2f-v1.1-id-20160915/fido-u2f-raw-message-formats-v1.1-id-20160915.html). [CTAP2 support](https://fidoalliance.org/specs/fido-v2.0-ps-20190130/fido-client-to-authenticator-protocol-v2.0-ps-20190130.html) is forthcoming, with work being done in the **unstable** [`ctap2` branch](https://github.com/mozilla/authenticator-rs/tree/ctap2).\n\nThis library currently focuses on USB security keys, but is expected to be extended to\nsupport additional transports.\n\n## Usage\n\nThere's only a simple example function that tries to register and sign right now. It uses\n[env_logger](http://rust-lang-nursery.github.io/log/env_logger/) for logging, which you\nconfigure with the `RUST_LOG` environment variable:\n\n```\ncargo build --example main\nRUST_LOG=debug cargo run --example main\n```\n\nProper usage should be to call into this library from something else - e.g., Firefox. There are\nsome [C headers exposed for the purpose](./src/u2fhid-capi.h).\n\n## Tests\n\nThere are some tests of the cross-platform runloop logic and the protocol decoder:\n\n```\ncargo test\n```\n\n## Fuzzing\n\nThere are fuzzers for the USB protocol reader, basically fuzzing inputs from the HID layer.\nThere are not (yet) fuzzers for the C API used by callers (such as Gecko).\n\nTo fuzz, you will need cargo-fuzz (the latest version from GitHub) as well as Rust Nightly.\n\n```\nrustup install nightly\ncargo install cargo-fuzz\n\ncargo +nightly fuzz run u2f_read -- -max_len=512\ncargo +nightly fuzz run u2f_read_write -- -max_len=512\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozilla%2Fauthenticator-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozilla%2Fauthenticator-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozilla%2Fauthenticator-rs/lists"}