What is the difference between sadism and necrophilia?

sadism - the passion for unrestricted power over another sentient being; necrophilia - the passion to destroy life and the attraction to all that is dead, decaying, and purely mechanical

--Erich Fromm