To prevent mold, I never seal it air tight. I squeeze as much water out as possible, then break it into small chunks. Then I keep it in the open, on a dish or tray, for a couple weeks. After that, it goes into a non airtight tin, like from altoids or sucrets, or whatever.
Some people use silica gel desiccant packs in with their hash to achieve the desired humidity.