Click here to Skip to main content
15,891,316 members
Articles / Programming Languages / C# 4.0

WCF Client Server Application with Custom Authentication, Authorization, Encryption and Compression - Part 1

Rate me:
Please Sign up or sign in to vote.
4.87/5 (46 votes)
22 Mar 2011CPOL8 min read 150.7K   5.9K   159  
HTTP - No IIS; Authentication - No SSL/X509 Certificate; Encryption - RSA+AES for Request, AES for Response; Compression - GZip for both Request/Response
References:

[1] RSACryptoServiceProvider Class http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsacryptoserviceprovider.aspx
[2] AesCryptoServiceProvider Class http://msdn.microsoft.com/en-us/library/system.security.cryptography.aescryptoserviceprovider.keysize(v=VS.100).aspx
[3] Custom WCF authentication http://efreedom.com/Question/1-3715778/Custom-WCF-Authentication-SystemServiceModelServiceAuthenticationManager
[4] Custom Message Encoder: Custom Text Encoder http://msdn.microsoft.com/en-us/library/ms751486.aspx
[5] Cryptography Helper http://challenge-me.ws/post/2010/12/18/Cryptography-Helper.aspx
[6] How to Get the AES Encryption Key from a RSA+AES Encrypted XML http://challenge-me.ws/post/2010/11/21/How-to-Get-the-AES-Encryption-Key-from-a-RSA-AES-Encrypted-XML.aspx
[7] WCF GZip Compression http://challenge-me.ws/post/2010/11/05/Do-Not-Take-Microsofts-Code-for-Granted.aspx
[8] How to: Encrypt XML Elements with Asymmetric Keys http://msdn.microsoft.com/en-us/library/ms229746.aspx
[9] How to: Encrypt XML Elements with Symmetric Keys http://msdn.microsoft.com/en-us/library/sb7w85t6.aspx
[10] The Universal Code Breaker http://challenge-me.ws/post/2011/02/17/Windows-The-Universal-Code-Breaker.aspx
[11] Wcf ClearUsernameBinding http://webservices20.blogspot.com/2008/11/introducing-wcf-clearusernamebinding.html
[12] Microsoft samples http://go.microsoft.com/fwlink/?LinkId=87352
[13] Microsoft code - Encoder/Factory https://ofxp.svn.codeplex.com/svn/trunk/SourceCode/Common/Arbiter/MessageContainerTransport/GZipEncoder/GZipMessageEncoderFactory.cs
[14] Resolving XmlDictionaryReaderQuotas Error for WCF Compression using GZipEncoder with Custom Binding http://nirajrules.wordpress.com/2008/12/22/resolving-xmldictionaryreaderquotas-for-wcf-compression-using-gzipencoder/











By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Architect Adrem Automation
Romania Romania
Motto: “Challenge is Life!”

Software architect, developer, project manager, consultant - depending on the “Challenge”.

challenge-me.ws





Don't forget to vote or share your comments.

Comments and Discussions