I'm using the argon2 crate with the password-hash feature. I have my salt stored as a byte array, but version 0.5.0 of password-hash seems to only allow creating a Salt from a base64-encoded string, but I would like to create a Salt directly from a byte array.
It seems like version 0.6 of password-hash fixes this by using phc::Salt which can be created from a byte slice.
I'm using the
argon2crate with thepassword-hashfeature. I have my salt stored as a byte array, but version 0.5.0 ofpassword-hashseems to only allow creating aSaltfrom a base64-encoded string, but I would like to create aSaltdirectly from a byte array.It seems like version 0.6 of
password-hashfixes this by usingphc::Saltwhich can be created from a byte slice.