This is how sauerkraut, kimchi or fermented gherkins are made: the vegetables are covered with water containing 2–3% salt and, over days or weeks, lactic bacteria turn their sugars into acid.
The key is to keep the vegetables always submerged, so no mould appears, and to ferment somewhere cool. A white film on the surface is usually yeast, which is skimmed off.

