An Illinois man has been charged with felony computer hacking related to a phishing scheme that gave him illegal access to over 300 Apple iCloud and Gmail accounts, including those belonging to members of the entertainment industry in Los Angeles.

Edward Majerczyk, 28, was named in information filed last week in United States District Court in Los Angeles. Majerczyk has signed a plea agreement in which he agrees to plead guilty to a felony violation of the Computer Fraud and Abuse Act, specifically, one count of unauthorised access to a protected computer to obtain information.

Jennifer Lawrence was one of the prominent celebrities targeted in the hack.

Although Majerczyk has been charged in Los Angeles, the parties have agreed to transfer the case to the Northern District of Illinois for the entry of his guilty plea and sentencing. Once he enters the guilty plea, Majerczyk will face a statutory maximum sentence of five years in federal prison.

Majerczyk is the second man to be charged over the incident, following Ryan Collins earlier this year.