locked
Encryption and Decryption of messages in C# RRS feed

  • Question

  • Hi All,

    I have web service layer which would receive the encrypted and signed message, the web service layers need to decrypt and validate the signature before passing it to the internal application for business processing ...

    please let me know any code samples, links for encrypting and decrypting the messages ... thanks  
    Wednesday, November 18, 2009 2:04 PM

Answers

  • http://www.codeproject.com/KB/security/SimpleEncryption.aspx

    http://docs.google.com/gview?a=v&q=cache:sJSwtCuWVvQJ:www.entrust.com/resources/pdf/cryptointro.pdf+Entrust%27s+Introduction+to+Cryptography+and+Digital+Signatures&hl=en&gl=us&pid=bl&srcid=ADGEESjy1r1si188N-YivQ-uCI5LHxZyOSLtDewY7tOgI-4h5s15EtbjvM3NZa9qJrF5jWtJoSuY2oa5CyIDk7MkTMrn67yGGAnMaChlbEqIaTkPIeM84-_lHW8efEryPKwoQbpe0mNg&sig=AFQjCNEfZ2E0eS8M3XmqytFwbj8WxvlqwQ

    http://geraldgibson.net/dnn/Home/2WayEncryptedCommunication/tabid/150/Default.aspx
    • Proposed as answer by JediJohn82 Thursday, November 19, 2009 4:53 PM
    • Marked as answer by liurong luo Tuesday, November 24, 2009 10:45 AM
    Thursday, November 19, 2009 4:53 PM

All replies

  • Wednesday, November 18, 2009 2:24 PM
  • Are you planning on using symmetric or asymmetric keys? .NET provides several cryptographic services http://msdn.microsoft.com/en-us/library/system.security.cryptography.aspx.
    Wednesday, November 18, 2009 2:29 PM
  • What I know as of now we are using X509 certificates to encrypt and decrypt messages ...
    Wednesday, November 18, 2009 3:10 PM
  • Infact message is signed using X509 certificates and Encrypting algorithm is suppose to be RSA
    Wednesday, November 18, 2009 3:20 PM
  • http://www.codeproject.com/KB/security/SimpleEncryption.aspx

    http://docs.google.com/gview?a=v&q=cache:sJSwtCuWVvQJ:www.entrust.com/resources/pdf/cryptointro.pdf+Entrust%27s+Introduction+to+Cryptography+and+Digital+Signatures&hl=en&gl=us&pid=bl&srcid=ADGEESjy1r1si188N-YivQ-uCI5LHxZyOSLtDewY7tOgI-4h5s15EtbjvM3NZa9qJrF5jWtJoSuY2oa5CyIDk7MkTMrn67yGGAnMaChlbEqIaTkPIeM84-_lHW8efEryPKwoQbpe0mNg&sig=AFQjCNEfZ2E0eS8M3XmqytFwbj8WxvlqwQ

    http://geraldgibson.net/dnn/Home/2WayEncryptedCommunication/tabid/150/Default.aspx
    • Proposed as answer by JediJohn82 Thursday, November 19, 2009 4:53 PM
    • Marked as answer by liurong luo Tuesday, November 24, 2009 10:45 AM
    Thursday, November 19, 2009 4:53 PM