An electronic device protected by a novel barrier layer is provided. The
barrier layer can protect against contamination and degradation arising
from many sources, including oxidation and moisture. The barrier layer
includes a barrier material that can include oxides, carbides, and
compositions of sodium, aluminum, and fluorine.