An implantable device and methods of inhibiting corrosion on a magnesium-based implantable device are described. The implantable device comprising a body having an external surface. The body or one or more structural members thereof is formed at least in part by metallic magnesium or an alloy thereof. The implantable device comprises a biocorrosion-inhibiting film on at least a portion of the external surface, wherein the biocorrosion-inhibiting film comprises a metal.