Federal authorities investigating a massive celebrity photo leak dubbed "Celebgate" have charged a Lancaster man with hacking into more than 100 Apple and Google accounts, many belonging to female celebrities.

Ryan Collins, 36, has agreed to plead guilty to felony computer fraud, which carries a penalty of up to five years in prison, according to a release issued Tuesday by the U.S. Attorney's Office in the Central District of California.

Prosecutors said while the charge against Collins stems from the "Celebgate" investigation, they have not uncovered evidence linking him to the actual leaks or that he shared or uploaded the information he obtained.

From November 2012 to September 2014, Collins used a "phishing" scheme to obtain usernames and passwords to the accounts, sending emails to the victims that appeared to be from Apple or Google, according to officials.

Ryan Collins Criminal Information Filing

When the victims replied, Collins accessed their email accounts, as well as other personal information such as private photos and videos, prosecutors said. In some instances, Collins used a software program to download the entire contents of the victims' Apple iCloud backups, they added.

Sign up for our newsletter Success! An email has been sent with a link to confirm list signup. Error! There was an error processing your request.

Officials said many of the people Collins targeted were Los Angeles-area celebrities and that he accessed at least 50 iCloud accounts and 72 Gmail accounts, mostly belonging to female celebrities.

Federal authorities said they have agreed to transfer the case against Collins to the Middle District Court of Pennsylvania, in Harrisburg, so he can enter his plea closer to home.

Ryan Collins Plea Agreement

The "Celebgate" scandal broke in 2014 when nearly 600 online storage accounts were hacked, resulting in the leaks of private photos belonging to celebrities such as Jennifer Lawrence, Kate Upton and Kirsten Dunst.