Expose password hashing functionality to the API.