The autocorrelation of a document is an index of the similarity of different sections of the document. It is sometimes possible to work out the key length of an encrypted document from its autocorrelation. Further information can be found under Calculating the autocorrelation of the document.