title: Node.JS TCP Server Encryption Layer
body: <p>Does Node.JS support sending binary data? or does it require a Base64 layer?</p>
  
  <p>Also, how best would I create an encryption layer? I am expecting I will create a module that acts exactly like the net module (as it pertains to tcp client/server communication) and then just call an underlying net module.</p>
  
  <p>However, I would like the encryption layer to be easily added to a file I/O stream. Would those two operations have to work different?</p>
  
  <p>I know little about Node.JS but I know Java and browser based JavaScript very well. </p>