Plastic boxes would do fine in most scenarios, but if you absolutely required a metal enclosure, a few coats of Plastidip on all interior surfaces would keep your electronics safe as well.