3 points · by swyx · 8y ago · 4 comments
Read the "website security" and "client server application security" sections of this and choose the advice closest to your project needs:
http://latacora.singles/2018/04/03/cryptographic-right-answe...
and the discussion of that from last week:
https://news.ycombinator.com/item?id=16748400
The great advice there is "Let AWS AELB handle it for you".
Right now, the best answer one can give you is "it depends".
Is this for a web page or web app, native iOS/Android app, desktop app?
Is this for Client/Server or P2P?
Are you sending files that can be encrypted, or is it a real time connection link of some sort?
In general, you can use TLS/SSL (as mentioned by @bigiain), but there are other use cases where you might want to do something more specialized.