BRIDGEWATER, N.S. -- Six male high school students in southwestern Nova Scotia are facing charges following an investigation into complaints that intimate images of at least 20 young female students were shared online without their consent.

Bridgewater Police chief John Collyer said Friday the case marks one of the first in Canada that involves federal anti-cyberbullying legislation introduced in late 2013 after the high-profile death of Nova Scotia teen Rehtaeh Parsons. The bill became law in March 2015.

The 17-year-old attempted suicide and was taken off life support after a digital photo of what her family says was a sexual assault was circulated among students at her school in Cole Harbour, N.S.

"We've been trying to get the word out, but youth live in the moment and they sometimes forget that once (an image) is out there, electronically, it's out there forever," the police chief said.

"It's a tough discussion, but it's one that needs to be held."

Collyer said the six accused -- all students at Bridgewater High School -- were charged with distributing intimate images without consent and possession and distribution of child pornography following a year-long investigation.

"This activity was not necessarily taking place at the school," he said. "This was happening outside school hours."

Four of the accused are 15 years old, and the other two are now 18. All were under 18 at the time of the alleged offences, which means their identities are protected from publication.

The majority of the potential victims are also students at the school, Collyer said.

With the case before the courts, the police chief said he couldn't speculate on what motivated the alleged sharing of the images, though he said police do not believe any money was involved.

"It's a fairly complex issue," he said. "There's a lot of different things taking place here ... I think it's fair to say that in some cases pressure was brought to bear."

After complaints came in from school officials, investigators seized a number of electronic devices --mainly cellphones -- and handed them to the RCMP Technological Crime Unit for analysis.

"At that point, we thought we had a small number of potential victims," Collyer said.

However, the Mounties found more photos, and a search warrant was drafted to obtain information from Dropbox, a U.S.-based file-sharing service, he said.

Using an international treaty, Canadian officials obtained the files through the FBI, but that took a considerable amount of time, the chief said.

"It became apparent that there was a lot more potential victims than we knew about initially," he said, adding that some of the potential victims have yet to be identified.