Encryption with Irrational Numbers and the One-Time Pad

In this Demonstration, the initial bits of an irrational number are used as a one-time pad for the encryption of a sentence. The resulting digits are shifted to the left and XOR-ed with the plain text to the length specified to create the cipher text.

The reverse process is used to decrypt by again generating the irrational number from the two primes, performing the shift left of the number bits, and XOR-ing with the cipher text for the length of that text.

The one-time pad is the shared secret key used to encrypt and decrypt the plain text. If the one-time pad is discovered, the message can be decrypted.