Pwhash is a crate which lets you easily generate a hash from a password using several common algorithms, or check a password against an existing hash. You can get it from crates.io, or browse the source repository.

The initial release contains algorithms commonly found on free Unices. It shouldn’t be difficult to extend if there’s interest.

Comments/suggestions/criticism are welcome.