Sort every rotation of a word and keep only the last column. Equal letters bunch up, which compresses well, and the column alone is enough to get the word back.
This interactive visualization needs JavaScript.