inejge / pwhash

A collection of password hashing routines in pure Rust
MIT License
61 stars 11 forks source link

create cmdline utility to generate and verify hashes #17

Closed ibotty closed 1 year ago

ibotty commented 1 year ago

It would be great to have a small cli utility that can generate and verify hashes.

Of course it could be a different package, but I think this might be a fine spot in this library, because

inejge commented 1 year ago

Sorry for the delay in answering this one, I noticed it when fresh and then it slipped my mind. A binary could be added to the crate, but the set of hashing algorithms is fixed; by design, I wish to keep just the historic and present system hashes on Unix-like systems. I notice you've mentioned argon2 -- I wouldn't add it to the crate, so a hashing program in the crate couldn't provide it.

A separate crate is, then, what I'd recommend. I think that hashpw is still available, and is also a fine name.

I'll close this issue and the pull request.