he used a combination of a polyalphabetic substitution , a transposition and a date shift cipher based on the first , middle and last encrypted pages , anna whispered breathlessly while we stared at the three algorithms scribbled across a sheet of paper .