> When using bcrypt, make sure to use the following algorithm to prevent the leading NULL byte problem. and the 72-character password limit:
> bcrypt(base64(sha-512(password)))
Pre-hashing the password, in this context, without a salt, is susceptible to hash shucking: https://security.stackexchange.com/questions/234794/is-bcryp...
Instead, use:
bcrypt(base64(sha-512(password + global_salt)))