sodium_crypto_pwhash() warns "empty password"
thisispiers opened this issue · 1 comments
thisispiers commented
sodium_crypto_pwhash() warns "empty password" when the value for a blind index is an empty string or null.
My current workaround is to add this line to the beginning of BoringCrypto::blindIndexSlow()
if ($plaintext === '') { $plaintext = ' '; }
A unique value from a constant might be preferable.
paragonie-security commented
Fixed in v4.0.1