What is the difference between hacker and criminal?

okay, i think this is the easiest way to explain this is by explaining the different kinds of hacking.

there are three kinds of hackers, there are white hat hackers, gray hat hackers, and black hat hackers.

white hats to legal things for good purpose.

gray hats do illegal things for good purpose

black hats do illegal things for bad purpose (ex: to harm someone)

for a true definition of a hacker check out the hackers manifesto.

a criminal is someone who does anything illegal