Hiller was especially busy in the second period when he stopped 15 shots and went on to post his fourth shutout of season and 10th of his career.
Ryan shook off a stick check from Marc-Edouard Vlasic while skating through the crease and launched a wrist shot that eluded Antti Niemi in the second period.
The Ducks got their fifth win in six games. The Sharks, meanwhile, continued to struggle, losing their fourth straight and sixth in eight contests.
Niemi stopped 27 shots for San Jose.