|
UPDATE2: I think i got a hold on the whole damn thing... The problem is the following(yet to disclose how to fix it though...):
a) if I load the encrypted text from a file into a string and decrypt that string, the whole damn thing breaks.
b) if I load the encrypted text from a constant string hardcoded into rad studio xe, the whole damn thing breaks.
c) if I load the encrypted text from a Memo.Text and execute RC6Decrypt(Memo1.Text), THE WHOLE DAMN THING WORKS AND DECRYPTS SUCCESFULLY.
So...I am now trying to understand why loading it in a textbox makes it succeed while loading from a string it kills himself...
Worse...if i load the encrypted text into a string, and then send it to Memo, the thing FAILS, if i copy from the encrypted file the binary data and paste it directly into memo, the thing WORKS...
Does this make any sense?
|