Authorities will be given the ability to take over the online accounts of Australians and hack into networks to change or delete data for alleged crimes that carry jail time of three years or more, under legislation introduced to Parliament on Thursday.