17 releases

new 0.5.1 Dec 20, 2024
0.5.0 Apr 28, 2024
0.5.0-dev Oct 31, 2023
0.4.9 Nov 16, 2022
0.4.2-beta.4 Jul 29, 2022

#14 in #authenticator

Download history 2886/week @ 2024-09-04 2699/week @ 2024-09-11 2688/week @ 2024-09-18 3453/week @ 2024-09-25 5105/week @ 2024-10-02 7491/week @ 2024-10-09 9528/week @ 2024-10-16 9438/week @ 2024-10-23 9346/week @ 2024-10-30 8627/week @ 2024-11-06 6169/week @ 2024-11-13 4405/week @ 2024-11-20 4640/week @ 2024-11-27 3167/week @ 2024-12-04 25778/week @ 2024-12-11 6778/week @ 2024-12-18

41,219 downloads per month
Used in 13 crates (5 directly)

MPL-2.0 license

555KB
8K SLoC

Webauthn Rust Core

Webauthn is a modern approach to hardware based authentication, consisting of a user with an authenticator device, a browser or client that interacts with the device, and a server that is able to generate challenges and verify the authenticator's validity.

⚠️ WARNING ⚠️

This library implements and exposes the raw elements to create a Webauthn Relying Party. Many of these components have many sharp edges and the ability to confuse users, accidentally allow security bypasses, and more. If possible you SHOULD use Webauthn-RS instead of this crate!

However, if you want to do something truly custom or specific, and you understand the risks, then this library is for you.

Why OpenSSL?

A question I expect is why OpenSSL rather than some other pure-Rust cryptographic providers. There are two major justfications.

The first is that if this library will be used in corporate or major deployments, then cryptographic audits may have to be performed. It is much easier to point toward OpenSSL which has already undergone much more review and auditing than using a series of Rust crates which (while still great!) have not seen the same level of scrutiny.

The second is that OpenSSL is the only library I have found that allows us to reconstruct an EC public key from its X/Y points or an RSA public key from its n/e for use with signature verification. Without this, we are not able to parse authenticator credentials to perform authentication.

Resources

Dependencies

~12MB
~216K SLoC