# unix-crypt Rust reimplementation of various Unix crypt() password algorithms. Capable of producing and verifying password hashes suitable for use in [`shadow`][shadow.5] and [`htpasswd`][htpasswd.1] 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. [crypt.5]: https://man.archlinux.org/man/crypt.5.en [htpasswd.1]: https://man.archlinux.org/man/htpasswd.1.en [libxcrypt]: https://github.com/besser82/libxcrypt [shadow.5]: https://man.archlinux.org/man/shadow.5.en