TripleDES with Hexadecimal Key

  • Thread starter Thread starter Celia
  • Start date Start date
C

Celia

I am working with a web service which requires enryption of some XML
fields. It will be symmetric encryption - TripleDES.

The vendor has given me the Key that we will share. With the exception
that there are 48 characters in the actual Key that he gave me, here
is an example of what he gave me: 0E329232EA6D0D73 (The vendor has
told me to use all zeros for the IV.)

How can I use this with the .Key property of
TripleDESCryptoServicerProvider? I realize that what he is giving me
is hexadecimal, but how do I convert it a .Key that I can use with
the .NET framework. The only way that I can see to set the .Key
property is: Dim objDES.Key as Byte() = {48, 3, 17, 131, 202, .....and
so on}

How do I either convert the .Key that the vendor has given me to the
VB.NET language above - or is there another to set the .Key property
that I am overlooking?

Any help anyone could give would be hugely appreciated - thanks!
 
I am working with a web service which requires enryption of some XML
fields. It will be symmetric encryption - TripleDES.

Is this a new web service? WS-Security (WSE 3.0) provides encryption out of
the box.
 
Is this a new web service? WS-Security (WSE 3.0) provides encryption out of
the box.

All I know is that I am using Visual Studio 2005 to access the web
service, which has very recently been completed and put into
production by the vendor.

So I am uncertain as to how to proceed with "WS-Security (WSE 3.0)
provides encryption out of
the box."...

Thanks.
 
Many thanks - I just installed it - and I will see if this can help me
with my problem...

Thanks again!
 
Many thanks - I just installed it - and I will see if this can help me
with my problem...

WSE takes a little effort to learn, but it does provide stnadards based
encryption and other useful features (i.e. username token support,
certificate authentication, etc.)

You may also want to investigate WCF as some of these feature maybe in WCF
too.
 
Back
Top