BRIDGEPORT, Conn. (CBSNewYork/AP) — One of the people responsible for hacking the private online photo collections of Hollywood’s elites, including files picturing nudity or sex, has pleaded guilty to his role in the crime.

Federal prosecutors say 26-year-old George Garofano, of North Branford, pleaded guilty Wednesday to unauthorized access to a protected computer to obtain information.

READ MORE: Former Aides Karen Hinton, Lindsey Boylan Accuse Gov. Andrew Cuomo Of Bullying, Sexual Harassment

The crime involved gaining access to the iCloud accounts of Hollywood stars and others so he could steal personal information, including private photographs and videos.

The charge stemmed from the investigation into the 2014 scandal in which the private photos of Jennifer Lawrence, Kirsten Dunst, Kate Upton and others were made public.

Prosecutors say Garofano sent emails that appeared to be from Apple encouraging victims to disclose usernames and passwords. He then used the information to illegally access nearly 250 iCloud accounts.

READ MORE: 6-Year-Old Boy Struck And Killed While Attempting To Board School Bus With Brother In Brooklyn

Back in 2014, Jennifer Lawrence told Vanity Fair magazine the hack was “not a scandal. It is a sex crime.”

“It’s disgusting,” she said. “The law needs to be changed, and we need to change.”

Of those who looked at the photos, she said, “Anybody who looked at those pictures, you’re perpetuating a sexual offense. You should cower with shame.”

Garofano, who remains free on $50,000 bond, faces up to five years in prison at sentencing at a date to be determined.

MORE NEWS: GameStop Shares Surge Nearly 104% In One Day

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)