Closed Keats closed 7 years ago
argon2i_simple
computes the raw bytes of hash. nothing outside of src/verifier.rs
has anything to do with encoded generation/verification.
as for documentation and examples, i'm always open to pull requests.
as for the suggested api calls that abstract away the choice of hash algorithm, they're probably more appropriate in a middle man library, since this one deals strictly with argon2.
Thanks for that! I can probably close the issue now
I was working on a patch to improve the readme a bit and I noticed a couple of things:
argon2i_simple
doesn't add the fields at the beginning of the hash (like$argon2i$m=4096,t=3,p=1$
)verifier::Verifier::from_u8(&hash)
in the example errorsThe verifier expects the fields to be there afaik, is the absence expected? Also, would you be open to a PR that adds a basic API for hashing/verifying like https://github.com/Keats/rust-bcrypt? Normal users would be able to only import
{hash_password, verify_password}
(which would useargon2i_simple
internally) without caring about the implementation. If you want to change the passes etc you could still do it yourself