Steel won't rust in an alkaline environment. Or it won't rust much. Alkalines will etch the steel somewhat, though this is much less of a risk than oxidation.

Shaving creams and soaps are...