Hacking is unauthorized/authorized intrusion into a computer or a network. The person engaged in hacking activities is generally referred to as a hacker.
basically two types of hackers are there:-
1.white hat hackers(authorized)->Certain corporations employ hackers as part of their support staff. These legitimate hackers use their skills to find flaws in the company security system, thus preventing identity theft and other computer-related crimes.
2.black hat hackers(unauthorized)->These hackers attacks the flaws and security system of authorities and harms them for their personal profits and needs. They perform illegal activities and are cyber criminals.