A trojan horse is a piece of code that is created to interfere with the regular performance of a computer. Infections can spread out quickly and trigger substantial damage to both individual computers and networks. Some infections are harmless, while others can erase files, corrupt data, and even damage hardware.
A virus is a piece of code that is designed to interrupt the normal performance of a computer. Viruses can spread quickly and cause significant damage to both private computer systems and networks. Some viruses are safe, while others can erase files, corrupt information, and even damage hardware.