Hill-Cipher Hill cipher is a polygraphic substitution cipher based on linear algebra.Each letter is represented by a number modulo 26.