Indonesia's LGBTQ community has been under siege over the past few years, particularly in the conservative province of Aceh.
The women were reportedly stripped, beaten and forced to cut their hair.
Advocates decried the "cruel, inhuman and degrading" treatment the women received.
Recent events in Indonesia should dispel any doubt about the rising influence conservative Sunni Islamist sentiment is having on the country’s laws.
Up to 1,000 people looked on as the men were publicly punished.
Activists have condemned the incident as a violation of privacy.
The two men say they will not appeal the verdict.