Andrew Helton is accused of collecting 161 sexually-explicit photos of 13 people -- some of unidentified celebrities -- by hacking into 363 email accounts!

The 29-year-old Portland man had an elaborate "phishing" scheme to steal Apple and Gmail email passwords.

The nude celebrities weren't necessarily victims of Helton's cyber attacks. Police believe the email owners may have possessed them illegally. Some of the 363 email accounts did belong to members of the entertainment industry, they said.

Helton emailed people requesting a confirmation of their email passwords and used a fake page that looked like an Apple or Gmail page.

He faces five years in federal prison and will attend a hearing June 2.