salt creation and password hash comparison service api