yoda_machine

yoda_machine

How secure is gen_tcp

I am using :gen_tcp to send raw data between peers. How secure is gen_tcp? Do I need to add an extra security layer on top of what gen_tcp currently provides?

Most Liked

OvermindDL1

OvermindDL1

There’s no file’s for TCP communication. However TCP itself is a reliable protocol, it already tries to prevent corruption for data transferred.

This is a layer above TCP, not TCP itself. This would be like ssl, so look at :gen_ssl, which it itself runs on top of :gen_tcp.

NobbZ

NobbZ

TCP does not know about files or encryption by itself, so you need to implement another transfer protocol on top that suites your needs.

TCP only saves you for packet loss as it will rerequest packages that are missing from a sequence. AFAIR also packages are checksummed but I’m not sure about that one…

Nevertheless, gen_tcp won’t give you magically more or better guarantees that TCP would give you.

OvermindDL1

OvermindDL1

Depends on what you are transferring to or from?

If it’s multiple local erlang nodes, could just use the standard distribution, if it’s remote erlang nodes then standard distribution over an SSH tunnel. Honestly I’d just use :ssh_sftp regardless of what it is, or a web server.

Last Post!

yoda_machine

yoda_machine

Thank you! I will try it out!

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New

Other popular topics Top

grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54006 488
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44139 214
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New

We're in Beta

About us Mission Statement