#web #authentication #web-apps #http

bin+lib axum-htpasswd

Simple file-based authentication in Axum

2 unstable releases

0.2.0 Mar 23, 2024
0.1.0 Mar 4, 2024

#1125 in HTTP server

Download history 139/week @ 2024-03-04 9/week @ 2024-03-11 76/week @ 2024-03-18 26/week @ 2024-03-25 36/week @ 2024-04-01

153 downloads per month

MIT license

19KB
389 lines

axum-htpasswd

Even the simplest web applications require the authentication of users for various usages. The goal of this package is to allow this in the simplest way possible that has been around since forever: Using a htpasswd file.

axum-htpasswd supports files with password in plaintext (not recommended), or hashed using Argon2id (recommended), or scrypt.

By enabling the feature cli, the built application will support generating htpasswd files.


lib.rs:

Easy authentication for axum

Provide an easy-to-use, simple, file-based authentication mechanism for axum-based web applications modeled after htpasswd files.

Dependencies

~7–19MB
~228K SLoC