Fix the error where passwords are encoded using SHA-1 instead of SHA-256