I have an encryption algorithm which essentially encrypts the password entered by the user before saving it in the data base. The algorithm uses a Byte Array of 10 Bytes which overlays the memory used for the variable that stores the password entered by the user. It subtracts the first byte in the array by a value of 20H. For the bytes 2 to 10 in the array it sets up a loop to add the current byte to the previous. Meaning if the array of bytes is named X
For i = 2 to 10
X(i) = X(i-1) + X(i) ' We are actually adding bytes here.
Next i
I want to know how i can duplicate the algorithm in Visual basic. The data types that should be used etc to get exactly the same result after encryption.
Please help
