I've had to do that at a rooming house where I used to live. Mind you I went lower-tech: A heavy chain looped around the middle, through both door handles, and secured with a keyed padlock. It proved perfectly effective, yet the landlady hated that I did it. "It looks bad!" "It looks like people regularly steal my food... and they do."
All the food goes rotten since we all forget