Summary of Secret Codes


  1. They are easy to break.

  2. If you know how the message was coded, you automatically know how to decode it.

  1. Fermat's Little Theorem:

    ap-11 mod p

  2. Factoring is very hard. Even computers can't do it rapidly.

The next item require us to know the number of seconds in a year. This is:

60∙60∙24∙365=31536000≈3∙107


(37+2)30 mod 7 =

(32)6 mod 7 =

(47+4)mod 7 =

(4)6 mod 7 =

(16)3 mod 7 =

(2)3 mod 7 =

8 mod 7 = 1


Notice that I didn't do any big computations; in particular I have no idea what is the actual value of 2330 . And I didn't use anything but the basic definition of modulo.