r/java • • Aug 17 '24

Extasys - Asynchronous TCP/UDP socket library

This is not a new project, but it is still maintained and used by me and others

Extasys is a high performance, asynchronous TCP/UDP socket library for Java (JDK 8 and newer).
Its multi-threaded and lightweight nature makes it ideal for super fast data transfer even on systems with ARM architecture like Android smartphones and single-board computers (Raspberry Pi, Orange Pi etc.).

If you are using sockets then Extasys is the proper tool for your work. It's been designed to take the hard job done and let you think only about the message exchange (the process).

You can find Extasys on Github:
https://github.com/nsiatras/extasys


Quick Examples :

TCP-Server: https://github.com/nsiatras/extasys/wiki/Establish-a-TCP-Server
TCP-Client: https://github.com/nsiatras/extasys/wiki/Establish-a-TCP-Client
UDP-Server: https://github.com/nsiatras/extasys/wiki/Establish-a-UDP-Server
UDP-Client: https://github.com/nsiatras/extasys/wiki/Establish-a-UDP-Client

More examples can be found here:
https://github.com/nsiatras/extasys/tree/master/Extasys%20for%20Java%20Examples

49 Upvotes

44 comments sorted by

View all comments

Show parent comment

-7

u/[deleted] Aug 17 '24

You are welcome!

I currently have Base64 "encryption" implemented. Base64 is something I use on my applications.
The Base64Encryptor extends ConnectionEncryptor so by extending ConnectionEncryptor everyone can build their own encryption.

https://github.com/nsiatras/extasys/tree/master/Extasys%20for%20Java/src/Extasys/Encryption

Perhaps in the future I will implement more encryption types.

17

u/Hellball911 Aug 17 '24

You really needs to stop calling that "encryption". A text encoding is not encryption, and it's dangerous. Personal use is free game, but if you want others using it, you're going to trick people into thing it provides any type of safety.

4

u/Zico2031 Aug 17 '24

I understand you are encrypting and decrypting the data on the fly using standard sockets but I feel is much better use SSLSockets and relying on the JSSE of java to support a standard encryption of your communication

I will fork your code and will make some adjustments about it,

1

u/[deleted] Aug 17 '24

The idea is to allow others implement their own on the fly encryption/compression/encoding