Apples contain a compound called amygdalin of their seeds, which happens to be a combination of cyanide-and-sugar based molecules. The apples or apple seeds can then decompose and produce the poisonous gas hydrogen cyanide.It's also possible to obtain cyanide in particular nitrile compounds used in medications like citalopram (Celexa) and cimetidin