4 releases (breaking)

0.3.0 Sep 13, 2024
0.2.0 Dec 14, 2023
0.1.0 Jul 28, 2023
0.0.1 Feb 8, 2023

#336 in Authentication

Download history 5715/week @ 2024-07-29 4739/week @ 2024-08-05 7400/week @ 2024-08-12 8614/week @ 2024-08-19 7881/week @ 2024-08-26 8149/week @ 2024-09-02 10454/week @ 2024-09-09 9320/week @ 2024-09-16 9094/week @ 2024-09-23 10957/week @ 2024-09-30 11970/week @ 2024-10-07 10873/week @ 2024-10-14 11556/week @ 2024-10-21 10690/week @ 2024-10-28 6896/week @ 2024-11-04 8715/week @ 2024-11-11

38,343 downloads per month
Used in 2 crates

MIT/Apache

355KB
5.5K SLoC

Passkey Authenticator

github version documentation

This crate defines an Authenticator type along with a basic implementation of the CTAP 2.0 specification. The Authenticator struct is designed in such a way that storage and user interaction are defined through traits, allowing only the parts that vary between vendors, but keeping the specification compliant implementation regardless of vendor. This is why the Ctap2Api trait is sealed, to prevent external implementations.

Why RustCrypto?

For targeting WASM, yes there are other cryptographic libraries out there that allow targeting WASM, but none of them are as easy to compile to wasm than the pure rust implementations of the RustCrypto libraries. Now this does come with limitations, so there are plans to provide a similar backing trait to "plug-in" the desired cryptography from a vendor. Work is ongoing for this.

Dependencies

~6–15MB
~184K SLoC