Actually, they're very similar. The cyanide ion has a strong affinity for iron, specifically the iron in cytochrome c oxidase, an enzyme within our mitochondria that allows them to use oxygen. Cyanide poisoning is essentially suffocation.
Cyanide's affinity for iron is so strong that when it enters the body already bound to iron in the form of "Prussian Blue" it is essentially nontoxic.