473,769 Members | 2,372 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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: 0E329232EA6D0D7 3 (The vendor has
told me to use all zeros for the IV.)

How can I use this with the .Key property of
TripleDESCrypto ServicerProvide r? 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 2623
Celia <c.********@gma il.comwrote in news:137c4124-db3a-4261-9bbb-
50**********@d4 g2000prg.google groups.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**********@ro gers.com (Do not e-mail)
Jan 14 '08 #2
On Jan 14, 2:12*am, Spam Catcher <spamhoney...@r ogers.comwrote:
Celia <c.oblin...@gma il.comwrote in news:137c4124-db3a-4261-9bbb-
501403b83...@d4 g2000prg.google groups.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...@ro gers.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...@r ogers.comwrote:
Celia <c.oblin...@gma il.comwrote in news:137c4124-db3a-4261-9bbb-
501403b83...@d4 g2000prg.google groups.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...@ro gers.com (Do not e-mail)
Jan 14 '08 #4
Celia <c.********@gma il.comwrote in news:82eb45c4-5943-4017-90cf-
b4**********@v2 9g2000hsf.googl egroups.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**********@ro gers.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
3087
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 decrypt the encrypted string right. Program use Crypt::TripleDES; sub generate() {
8
13540
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 decrypt several of the first few characters. Here's the code: class TMyCipher {
7
17879
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 able to encrypt and then decrypt data okay as in the following code: // encrypt the data // Encryptor enc = new Encryptor(EncryptionAlgorithm.TripleDes); byte key = Encoding.ASCII.GetBytes("0123456789012345");
2
30544
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 above error. Below is the class I use and the code I use to call it. Not sure wher I'm going wrong here. The TripleDES service provider only uses a 192 bit 24 character length key. Any help would be greatly appreciated.
1
2880
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 I had and the question which I still have regarding that problem: I tried to send a hex string to a function that performed message
8
18655
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 adv.
7
19228
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 00000000000000001111111111111111 11111111111111111111111111111111 00000000000000000000000000000000 11111111111111110000000000000000
6
14685
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++){ printf("%02x",bs); } }
1
2095
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 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...
0
2171
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 Simple in Visual Basic .NET. Free source code and programming help Any help? Qurban
0
9416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9981
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9850
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8862
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3948
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.