473,545 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

single secure web service call

I have a .NET web service that needs to be called from any platform. I need
to make the Login method of the web service secure. It doesnt matter about
the remaining methods, just the password parameter of the Login call needs to
be encrypted. Trying to do this platform independently seems to be
difficult. I feel certificates is a bit over the top for what I am trying to
acheive.

Does anyone know of a way to make a single mthod of a web service secure, or
the simplest way to make a web service secure (encrypted), just for
authentication?

Nov 23 '05 #1
3 2033
The simplest way of securing a password being sent to a web service is
to have it go through a one way hash and send the base64 representation
of the hashed password. Then on your web service, you can look up the
password from your user data store and hash the stored password for the
user and compare the two hashes. If they match the password is valid
and the user can log in and use your service. The thing to remember
here is that both the client and the sevice must use the same hashing
algorithm like MD5 or SHA.

This usually works for me as there is no need to using either symmetric
or asymmetric encryption (as a result no key sharing), and hashing the
password is secure enough. You might also want to use a salt value
while hashing your password to avoid replay attacks.

Nov 23 '05 #2
you could also check out Web Service Enhancements (WSE). It implements
WS-Security spec and allows various ways to secure your web service.

http://msdn.microsoft.com/library/?u...326ff206ed.asp

Nov 23 '05 #3
Hello Kevin,
Especially since you want your service to be called from any platform
you would need to use standard authentication mechanisms i.e. WS-Security
and use the username token profile... I'd suggest you use WSE [0]

[0] - http://msdn.microsoft.com/webservice...e/default.aspx
[1] - http://msdn.microsoft.com/webservice...wssecdrill.asp
[2] - http://www.devx.com/dotnet/Article/19986/0/page/1
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I have a .NET web service that needs to be called from any platform.
I need to make the Login method of the web service secure. It doesnt
matter about the remaining methods, just the password parameter of the
Login call needs to be encrypted. Trying to do this platform
independently seems to be difficult. I feel certificates is a bit
over the top for what I am trying to acheive.

Does anyone know of a way to make a single mthod of a web service
secure, or the simplest way to make a web service secure (encrypted),
just for authentication?

Nov 23 '05 #4

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

Similar topics

3
4540
by: Matt Sollars | last post by:
I've struggled with this problem, and it's lack of examples, for a couple of months now. On several different web applications that we have written, we need to communicate with a credit card merchant servicer. On one of the projects a secure connection was made with a WebRequest object and during the reply, a trust error was received. I can't...
1
2308
by: EricMatz | last post by:
I work for a medium-sized insurance company, developing web-based systems for our independent agents. There are four primary applications we provide - one that serves as an agent portal (ASP), and three others that serve applications specific to each line of business (one ASP, two ASP.NET). Each of these applications reside on their own...
6
4949
by: ben | last post by:
I am needing a web service to be single threaded. Is this possible? Any ideas would be helpful
1
3479
by: mron0210 | last post by:
Hi, I have created a web service using Visual Studio .Net (Visual Studio Tools for Office : Excel project) and secured it using WSE 2.0. I have added a hyperlink in the Excel sheet which when clicked invokes the web service. It works when I invoke the non secure web service. But
2
2411
by: Spam Catcher | last post by:
Hi all, I'm looking to implement a single sign on solution for .NET applications. This single sign on solution will need to work against a variety of back- end databases (i.e. SQL (mainly), Active Directory (some), Custom Data Sources (XML, MDB, Custom Web Service, etc). Is there any sample code on implementing a simple single sign on...
0
3534
by: =?Utf-8?B?RmlsaXBwbyBCZXR0aW5hZ2xpbw==?= | last post by:
I have developed a web service under ASP.NET2. this web service call another web service which need a SSL connection. Therefore I pass, to be able to connect, I pass credential and certificate X509Certificate x509cert = new X509Certificate(@"C:\Visual Studio...
0
1474
by: hepsubah | last post by:
I'm trying to capture a client cert in my ASP.NET application, and use that cert as the client cert for a call to secure web service. I've used the following code, but am getting a 403 error on the invocation of the service. All the service is supposed to do is return the subject of the passed cert (I'll do more with it later) ...
7
7727
by: =?Utf-8?B?YWVzcGVy?= | last post by:
Is there such a thing as a single instance web service? Is it possible to have all calls to a web service share one property value by declaring it as static? I know web service should be stateless, but I am still trying to understand how instances of a web service are handled at the server side, if a unique instance is created for every call...
0
1694
by: =?Utf-8?B?VFRL?= | last post by:
I have a vb.net web service. I am trying to call another webservice that is secured through certificate. I have received the certificate file and I am trying to call the service using the file. I am having some challenges such as: 1. I can not add a web reference to the secure service. Error: The request failed with HTTP status 400: Bad...
0
7656
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. ...
0
7808
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...
1
7423
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...
0
7757
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...
0
4945
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
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...
1
1884
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
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
704
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...

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.