PROVIDENCE, R.I. (WPRI) — The Rhode Island General Assembly approved legislation Tuesday that would prohibit the posting of so-called “revenge porn” and make “sextortion” a criminal offense.

The legislation was sent to Gov. Gina Raimondo for her consideration.

According to a news release from the office of Rhode Island Attorney General Peter Kilmartin, Rhode Island would become the 35th state to have laws addressing “revenge porn,” or the distribution of private, sexually explicit materials without the consent of the person depicted.

Under the bill, a first offense would be a misdemeanor carrying penalties of up to one year in prison and/or a fine of up to $1,000. Subsequent offenses would be considered felonies, with the maximum penalties tripled.

The legislation also criminalizes “sextortion,” a cybercrime in which people use a victim’s personal, sexually explicit photos or videos — often stolen or hacked — to threaten the victim.

A conviction for “sextortion,” under the bill, would be a felony penalized by up to five years in prison and/or a fine of up to $5,000.