By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,761 Members | 1,193 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,761 IT Pros & Developers. It's quick & easy.

3DES : .net Vs Capicom

P: n/a

My question is about 3des, ... in fact the difference between 3DES with
Capicom (VB) and

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
Result = message.Encrypt

As you can see, we only supply the 'secret' and that's it.

I try to do the same with and I am confused. Here is an example with :

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.


Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.