Hi,
My question is about 3des, ... in fact the difference between 3DES with
Capicom (VB) and VB.net
With VB6/capicom, encrypting data is simple :
message.Content = "This is my bank account : Azerty007"
message.SetSecret "MyPassword'
message.Algorithm.KeyLength = CAPICOM_ENCRYPTION_KEY_LENGTH_128_BITS
message.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_3DES
Result = message.Encrypt
As you can see, we only supply the 'secret' and that's it.
I try to do the same with VB.net and I am confused. Here is an example with
VB.net :
Dim encStream As New CryptoStream(fout, _
tdes.CreateEncryptor(tdesKey, tdesIV), CryptoStreamMode.Write)
The function take 2 parameters : the key (same as capicomp) an the desIV.
Even if I can get what is the meaning of the desIV, how can I make this work
? I imagine that Capicom used this parmeter but hardcoded, so wahat was the
value ?
Thanks for the advice.
Regards
FE