Potting Compound

Has anyone tried to encapsulate a Particle Photon in Potting compound? I have a project where the environment will be extreme and I need to protect it from moisture. I will not need access to the buttons or the USB charger as part of the project.