BROOKLYN - A NYPD detective was arrested and charged today by FBI officials for allegedly hacking into the email accounts of fellow officers.

Federal agents arrested 42-year-old Edwin Vargas at his Bronxville home after he allegedly paid online hackers to obtain usernames and passwords of more than 30 people, including 19 current police officers.

Prosecutors say the hacking began as far back as April 2010, with the latest incident happening in October of last year. The U.S. attorney for the southern district is leading the investigation against Vargas.

If convicted, he faces one year in prison for each count of computer hacking.

Vargas joined the NYPD in 1993. Officials say he is currently suspended.