Along with Nancy SV's methods I add an
Ursack bag that is bear and critter resistant. The Kevlar/spectra material has served me well in bear country of Montana, Idaho, Alberta and British Columbia on bike tours such as the Divide Ride and on kayak tours in Alaska. I either hang it if a tree is available or tie it to a long tent stake I pound into the ground or tie it to a tree stump or rock outcropping. It has kept the critters large and small from taking my food cache for almost a decade.
The newer versions have an optional aluminum insert for rigidity and odor proof storage bags not available 10 years ago when I first bought the Ursack. A useful tool on tour in my experience.