Is this illegal?

Someone I know said that they are been taught how to hack in school is this allowed in the UK?
Update: By taught I mean TEACHERS teaching them!
6 answers 6