Replace hash algorithm with bcrypt

The legacy hashes are automatically replaced when the users log in or change their passwords, so no user interaction is required.

Note: I've added a new constant in the configuration script.