Encrypt a tring
Posted on 2000-02-02
I have a string of integers ('0000000000') to the billionths place. Any of the zeroes in that tring can be different. I need to pass this string to a procedure (which im hoping you would help me with) that would:
1. Add any zeroes up to the billionths place. Basically turn '2367' into '0000002368'
To explain this easier, i will assign letters to the zeroes. (A-J)
X stands for a random number from 0 to 9. (2x) represents two random numbers one right after eachother and so on.
I need to encrypt whatever stringis passed in the following way.
* The 84X are not random numbers, they are derived from already previously set numbers. Take the (2X)(30X)(10X)(20X)(16X)(6X) that were alreay randomly picked and then subtract each one of those numbers from 9 to form the 84 new numbers.
In the end, there should be a total of 224 numbers within which, the billion place number is encrypted.
I realize this encryption sucks but i must do it this way, please do not ask for an explanation.
Thanks a lot.