Earth worms and red wrigglers love to feed off of dog droppings, and the worm poop created (called castings) is a very rich, usable compost that is safe to use in the garden.
If you are determined to use human poop for composting, there are composting toilets available.
Worms do not eat food scraps and poop.