#algorithm #crypt #hash #unix #password-hash #apr1

unix-crypt

Rust reimplementation of various unix crypt(3) algorithms

1 unstable release

0.1.0 Aug 19, 2024

#747 in Algorithms

Download history 134/week @ 2024-08-18 6/week @ 2024-08-25

140 downloads per month

Apache-2.0

7KB
97 lines

unix-crypt

Rust reimplementation of various Unix crypt() password algorithms.

Capable of producing and verifying password hashes suitable for use in shadow and htpasswd files. See crypt.5 for information about algorithms and hash formats.

⚠️ Do not use this crate as a general purpose password library.

TODO: Concrete spec of what this library permits and doesn't permit, as implementations and manual pages tend to diverge pretty significantly.

Supported algorithms:

  • bcrypt (Version 2b)
  • sha512crypt
  • sha256crypt
  • Apache MD5 ("apr1")

Algorithms considered obsolete or insecure are not implemented, for example sha1crypt or descrypt.

Dependencies

~365KB