Salts kills micro organisms. When applied on substances such as fish and meat it kills micro organisms that cause food spoilage. It also removes spoilage from the food.
Smoking causes the food to dry which makes survival of micro organisms difficult.