If you are mathematically inclined and understand (or are willing to learn)
something about modular arithmetic, you can read about the maths behind
RSA public-key cryptography and the IDEA cipher, two of the
traditional components of PGP, in the appendices to the
FAQ.