Fix bcrypt core functionality