I have been collecting silica gel for some time, placing it in a glass jar with a tight fitting lid. Everything comes with a little packet of silca gel these days.
I drilled holes in the lid to capture moisture. Every month I spread the silaca gel crystals out on a cookie sheet and bake in the oven at 200 degrees F for about 1 hour to evaporate the stored moisture. These moisture absorbers are called desiccants. You can buy them online pretty cheaply. The commercial brands are pink and turn blue as they absorb moisture. Bake them until they turn pink again and use over and over.
However, I believe the new Oxygen absorbers are better. Oxygen is what causes rust, not moisture. That's why the call rust - oxidizing. Reduce the oxygen and you reduce the rust. The best thing is to use both. I've started to see more and more food and electronic devices shipping with oxygen absorbers instead of moisture absorbers.