How to build encryption??
Posted by Inevitable_Cellist93@reddit | learnprogramming | View on Reddit | 13 comments
I been building a chat app with Java and AWT and the server with Cpp how to encrypt the data packets to prevent eavedropping?? I going with TCP since its easy for learning.
Sea-Attorney2788@reddit
claude
Inevitable_Cellist93@reddit (OP)
broo
Sea-Attorney2788@reddit
what
zeocrash@reddit
How is this guy supposed to learn if you just encourage him to outsource his brain to ai.
Sea-Attorney2788@reddit
he doesn't need to learn that's what AI is for
zeocrash@reddit
If you don't think or learn, what value do you have?
If your only skill is typing requirements into a prompt and then unthinkingly committing the output to git, why would anyone hire you? I sure as fuck wouldn't. I could do that myself and use your salary to give myself a pay rise.
Sea-Attorney2788@reddit
no i got the claude subscription xD
AlwaysHopelesslyLost@reddit
Yeah, I am sure the halcuinarion machine would do super well at a concept that requires logic and critical thinking lol
AlwaysHopelesslyLost@reddit
If you have to ask you shouldn't.
NEVER roll your own crypto.
Spare_Dependent6893@reddit
Java awt side : native SSLSocket (provided JSSE with JDK)
Backend side OpenSSL
LeeRyman@reddit
If it was me, if I wanted a stream (as opposed to datagrams) over a widely established and supported protocol over TCP, I'd probably use TLS1.3.
I'm not a crypto boffin, and so would never assume I could build my own.
The best part is TLS can provide framing for you.
Inevitable_Cellist93@reddit (OP)
thx for the advice mate, I'll work into it.
ConfidentCollege5653@reddit
Use existing libraries for something like TLS. It's a common protocol that will have support in both languages. Never try to write your own encryption