Legislation to bring heavy penalties for hacking approved :