US sentences infamous hacker to 4 years in prison