The journalists were sentenced under a law passed to fight cybercrime, although it has been used to crackdown on the presidents critics.