473,386 Members | 1,644 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,386 software developers and data experts.

Message/Password Encryption

Hi!

I have a web service (c# .net 1.1) which is validating some credentials
before processing a certain request.

Initially I was only encrypting the accual passwordstring such as:

<password>encryptedpassword</password>

But when thinking about it I realized that this really approach really
doesnt help much since if a hacker sniffs this message he essentially has
the "magic word" needed to access my web service. He really doesnt need the
unencrypted password. Is this a correct conclution? Anyway, this led me to
encrypting the entire message instead ... (cant use SSL since the server
wont always to accessible for this kind of setup)

The real question: Where should I store the encryption key (TripleDES). At
the moment I store the key right in the code on both the client and the
server application. I have a feeling this is very bad. But where is the
right place to store enc.keys ?

/Andreas Zita
Nov 23 '05 #1
1 1911
Have you taken a look at WS-Security ? WSE implements it.
http://msdn.microsoft.com/webservices/building/wse/

--
Thank you.

Regards,
William T (Softwaremaker)
http://www.softwaremaker.net/blog

Independent Microsoft Regional Director | Microsoft MVP - Solutions
Architect
================================================== ====
"Andreas Zita" <an******@student.liu.se> wrote in message
news:ul**************@TK2MSFTNGP09.phx.gbl...
Hi!

I have a web service (c# .net 1.1) which is validating some credentials
before processing a certain request.

Initially I was only encrypting the accual passwordstring such as:

<password>encryptedpassword</password>

But when thinking about it I realized that this really approach really
doesnt help much since if a hacker sniffs this message he essentially has
the "magic word" needed to access my web service. He really doesnt need the unencrypted password. Is this a correct conclution? Anyway, this led me to
encrypting the entire message instead ... (cant use SSL since the server
wont always to accessible for this kind of setup)

The real question: Where should I store the encryption key (TripleDES). At
the moment I store the key right in the code on both the client and the
server application. I have a feeling this is very bad. But where is the
right place to store enc.keys ?

/Andreas Zita

Nov 23 '05 #2

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

Similar topics

10
by: Max | last post by:
Hello all, I am trying to protect a page within my site with a JS password scheme. Now I know JS can be quite easily "circumvented", but I came by a code below. My question is: 1. Is there...
6
by: Ian Davies | last post by:
Hello I would like to query the user table of the mysql database from my VB application to check that a user's password entered in a text field on a form corresponds to that users password in the...
1
by: Feng | last post by:
Hi, In my project I have a need for encrypting the password portion (only password, not the whole file) of my database connection string, so the password doesn't show as plain text. So, basicly,...
10
by: Niyazi | last post by:
Hi, I developed an application and I am using SQL Server 2000 developer edition. I create my database and I have also created tbl_USER table. I have an ID, RealName, UserName, and UserPassword...
4
by: hohans | last post by:
Hi all, I have an encryption class that encrypts and decrypts password using TripleDESCryptoServiceProvider. It was written originally in framework 1.0 and been working fine. And those...
11
by: cooltoriz | last post by:
Hello there, I just found that the compiled code won't hide the string variables so that I can see them by opening the execuable using Notepad. I have couple applications that have password...
2
by: Jeff Williams | last post by:
I am developing an application which will allow users (students) to run applications on PC's with elevated rights. This is necessary for some applications which require Administrator rights on the...
4
by: Gilles Ganault | last post by:
Hello I'd like to encrypt a customer's organization name to use this as their password to launch our application, and decrypt it within our VB5 application. We will then use this information...
0
by: Jon.Hakkinen | last post by:
Hi all, I'm on DB2 9.5 fp 0 on Windows. I have a simple SQL stored procedure which uses the Encrypt() function to insert data in a table. I do not set the encryption password inside the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.