Hydrogen peroxide is toxic to hermit crabs and many other types of marine animals. It can be used to disinfect the glass enclosure, but it will have to be rinsed very thoroughly to remove all traces. Very hot water or white vinegar is a safer disinfectant, and cleaning solution for hermit crabs.