Hello Ivan,
I know that this sounds crazy, but why bother with complex code for a encryption? Use up that RAM and Code space? All encryption can be broken, and the code of the encryption is someplace in that chip.
Instead of going through that mess, why not take advantage of the computers limitations?
For example....
Lets encript the following data.
Data var Byte
EnCryption var Byte
NewValue var byte
Data= "Hello World"
EncryptionCode="MySecret".
A way to think about it, is a byte can only go to 255 (FF) and starts all over again.
All you need, is two loops....
For s=0 to length of Data step 1
NewValue=Data[s]
For t=0 to length of EncryptionCode Step 1
NewValue=NewValue+EncrptionCode[t] + a changing Value
(that value can be the "s" in the For/Next loop)
Next t
'whala! NewValue is encrypted what do you want to do?
Next s 'get next value to encrypt.
And you do the opposite to Decrypt it.
Just a idea.....
Dwayne
Last edited by Dwayne; - 22nd July 2004 at 16:11.
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks