Home All Groups Group Topic Archive Search About

How to NOT use an IV for TripleDes encryption?

Author
14 Jun 2005 8:39 AM
Faisal Yaqoob
I need some information related to DotNet's IV in
TripleDesCryptoServiceProvider class. My company requires me to write a
client application that uses TripleDes encryption to communicate with a
server. The server is written in Java.

According to the information provided to me by the server guys, they have no
option of specifying an IV (Initialization Vector) for encryption/decryption.
So, I'll have to somehow do the encryption without the IV.

Can you please guide me on how can I prevent TripleDesCryptoServiceProvider
from using an IV?

The help would be great.

Thanks in advance,

Faisal Yaqoob

Author
18 Jun 2005 5:47 AM
Dominick Baier [DevelopMentor]
Hello Faisal,

you only need the IV if you are using a feedback mode like "Cipher Block
Chaining" -> algo.Mode = CipherMode.CBC

Electronic Code Book does not use an IV - alg.Mode = CipherMode.ECB

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Show quoteHide quote
> I need some information related to DotNet's IV in
> TripleDesCryptoServiceProvider class. My company requires me to write
> a client application that uses TripleDes encryption to communicate
> with a server. The server is written in Java.
>
> According to the information provided to me by the server guys, they
> have no option of specifying an IV (Initialization Vector) for
> encryption/decryption. So, I'll have to somehow do the encryption
> without the IV.
>
> Can you please guide me on how can I prevent
> TripleDesCryptoServiceProvider from using an IV?
>
> The help would be great.
>
> Thanks in advance,
>
> Faisal Yaqoob
>