title: Customer WCF Bindings / Binding Elements For Encryption
body: <p>I am trying to implement encryption for my WCF service. I am aware that there are several options out there for me to do this. I am not interested in them. I would like to use a password to regenerate repeatable RSA keys. These keys will then be used to exchanged AES keys which will be used to encrypted the actual passed data.</p>
  
  <p>I think I need a custom binding to do this. I would also be interested in trying to simply add my own binding element to the NetTCP binding. Has anyone tried to either customize the existing binding, or create a completely custom binding?</p>
  
  <p><strong>Update 1</strong></p>
  
  <p>I would really take any input about creating custom bindings. I can get the encryption part up and working from there.</p>
  
  <p><strong>Update2</strong></p>
  
  <p>I have a customer binding, and a custom binding element. Right now I am implementing the override for MessageEncoder.WriteMessage. I need to know where that message is going so I can use the right encryption key. I can't seem to access this destination address.</p>