473,396 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

TripleDES with Hexadecimal Key

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!

Jan 13 '08 #1
4 2610
Celia <c.********@gmail.comwrote in news:137c4124-db3a-4261-9bbb-
50**********@d4g2000prg.googlegroups.com:
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.

--
sp**********@rogers.com (Do not e-mail)
Jan 14 '08 #2
On Jan 14, 2:12*am, Spam Catcher <spamhoney...@rogers.comwrote:
Celia <c.oblin...@gmail.comwrote in news:137c4124-db3a-4261-9bbb-
501403b83...@d4g2000prg.googlegroups.com:
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.

--
spamhoney...@rogers.com (Do not e-mail)
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.
Jan 14 '08 #3
Many thanks - I just installed it - and I will see if this can help me
with my problem...

Thanks again!

On Jan 14, 2:12*am, Spam Catcher <spamhoney...@rogers.comwrote:
Celia <c.oblin...@gmail.comwrote in news:137c4124-db3a-4261-9bbb-
501403b83...@d4g2000prg.googlegroups.com:
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.

--
spamhoney...@rogers.com (Do not e-mail)
Jan 14 '08 #4
Celia <c.********@gmail.comwrote in news:82eb45c4-5943-4017-90cf-
b4**********@v29g2000hsf.googlegroups.com:
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.

--
sp**********@rogers.com (Do not e-mail)
Jan 14 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jonas | last post by:
I have the following perl program witch i use to encrypt a password file with. In perl 5.6 this program works like a charm but when trying it on the RED HAT EL 3 platform (taroon) is doesnt...
8
by: wkodie | last post by:
I'm having trouble encrypting/decrypting a simple string using the System.Security.Cryptography.TripleDESCryptoServiceProvider, etc... The encryption works, but the decryption does not properly...
7
by: Dica | last post by:
i've used the sample code from msdn to create an encyption/decryption assembly as found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT10.asp i'm...
2
by: GRB | last post by:
A client wants me to decrypt a cookie. They encrypted the data in java using TripleDES. The key provided is a 168 bit 44 character key, DESede alogorithm. Ive tried to decrypt in vb.net and get the...
1
by: Fernando Barsoba | last post by:
Hi all, First of all, I'd like to thank you "Skarmander" and "Flash Gordon" for the help they provided me: Skarmander's algorithm and Flash's modifications helped me a lot. Here's the problem...
8
by: Vijay | last post by:
Hi , I am doing a small project in c. I have a Hexadecimal file and want to convert into ascii value. (i.e., Hexadecimal to Ascii conversion from a file). Could anyone help me? Thanks in...
7
by: elliotng.ee | last post by:
I have a text file that contains a header 32-bit binary. For example, the text file could be: %%This is the input text %%test.txt Date: Tue Dec 26 14:03:35 2006...
6
by: Andrea | last post by:
Hi, suppose that I have a string that is an hexadecimal number, in order to print this string I have to do: void print_hex(unsigned char *bs, unsigned int n){ int i; for (i=0;i<n;i++){...
1
by: Celia | last post by:
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...
0
by: qfmomen | last post by:
I have encrypted password in db added by java application using tripleDES. I need to build same class but it is giving me different result. This class i have used: JavaProject: Making TripleDES...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.