Cryptography and coding theory and compression are three sides of the same (generalised) coin. Claude Shannon dabbled in all of them.
See eg https://www.dpmms.cam.ac.uk/~twk/Shan.pdf