JavaPad in a nutshell Chapter 5, How it works


This program is so simple that anyone who has used java/c++ for 6 months should
understand every line of code in it.

The program just takes one byte from the plaintext file and one byte from the keyfile
and does an exclusive or on them : plaintextChar ^ keyChar = cipherChar;
that's it :) extremly simple.
this means that every character in a document has 256 possible combinations.
wich in turn means that the ciphertext produced is uncrackable, since there is no
pattern in the encryption, every character is seperate from all the others, 
100% unbreakable encryption :)

If you want to find out how many different combinations possible in your encrypted file
just check out how many character there's in the file, (on unix use the "wc " command)
then start a calculator that supports high numbers (on unix use bc), and calculate this:
numberofcharacter^256, if there was 256 characters in your file, the number of possible combinations
will be a 610 digit number.

-End of chapter 5
<- Last Next ->