Security refers to protection from harm or threat. It involves measures to increase protection from external threats like hacking. Hacking involves exploiting security flaws to access secured networks for malicious purposes and has a long history dating back to the 1960s. There are different types of hackers like white hat hackers who help with computer security, black hat hackers who hack illegally for personal gain, and grey hat hackers who have a mix of motivations.