Click here to Skip to main content
15,923,789 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have to access an encrypted web service using c#, the web service is encrypted using sha1, how can i access that web service and use it
thanks for any help

and what url do i have to use i have .wsdl and .xsd, I am really new to web service I have used to use them locally not online web services
Posted
Updated 6-Nov-12 19:49pm
v2
Comments
Sergey Alexandrovich Kryukov 7-Nov-12 2:00am    
How do you imagine that? :-)
--SA

1 solution

A Web service cannot be SHA-1 encrypted, just because SHA-1 is not encryption by is a cryptographic hash function, which cannot be used for encryption and decryption in principle, period. Please see:
http://en.wikipedia.org/wiki/Cryptographic_hash_function[^],
http://en.wikipedia.org/wiki/SHA-1[^].

By the way, please read the last article: SHA-1 is considered broken and should not be used at all where security is required.

—SA
 
Share this answer
 
Comments
Waleedkassem 7-Nov-12 2:27am    
Man thank you, is not mine i never care for the security it is not our concern, but i have to connect to online service from another vendor I have good idea about f***ing these f***in encryption, but it is not the web service encrypted by itself I meant the data we be as sha1 encrypted values not plain text

thank you
Sergey Alexandrovich Kryukov 7-Nov-12 12:52pm    
That's fair. I specifically mentioned "where security is required" Hash functions can still be used when it it not required, and then SHA-1 is just fine. You see, your question about "Web site encryption" still makes me doubtful about your understanding of encryption... Do yo understand that "SHA-1 encrypted" is something which cannot be decrypted, so it cannot be used for site encryption?! You mix up something.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900