1. Re: Data Encryption

>>>>>
I use integers. If the number overflows (goes beyond 255 or below 0),
then I bring the number back into range. (A remainder(new_number, 256)
should do it, but I simply subtract (or add, if it's decrypting) 256 to
it to bring it back to it's allowed range.)
<<<<<

Let's suppose we seed a random number generator so that it returns these
two sequential numbers:

0, 255

Now you have two bytes you want to encrypt:

239, 240

Add =3D to 239, and you get the encrypted byte.  240+255 =3D 495.  It
overflows, so subtract 256.  You get 239.  So 239 could mean 239 or 240. =

Is there any way to tell?

--Alan
 =

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu