Back in the days, we would primarily rely on steganography, like hiding messages in images, hiding messages in words. We would then use end-to-end encrypted tools such as, at that time, Pretty Good Privacy, or OpenPGP. Nowadays, there’s many lighter alternatives, I will not get into technical details.