[#32804] Broken bcrypt implementation and password handling improvements (Fix #2589)