Node.JS TCP Server Encryption Layer

Question!

Does Node.JS support sending binary data? or does it require a Base64 layer?

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.

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?

I know little about Node.JS but I know Java and browser based JavaScript very well.



Answers

Yes, Node.js supports binary data.

For encrypted communication it has built-in support for SSL / TLS.

By : Alnitak


This video can help you solving your question :)
By: admin