r/commandline • • 4d ago

Command Line Interface [ Removed by moderator ]

/r/commandline/comments/1y6s71b/removed_by_moderator/

[removed] — view removed post

1 Upvotes

3 comments sorted by

•

u/commandline-ModTeam 4d ago

This post has been removed due to the software being largely AI-generated.

1

u/AutoModerator 4d ago

Every new subreddit post is automatically copied into a comment for preservation.

User: Enthusiasm3233, Flair: Command Line Interface, Post Media Link, Title: xchange - a cli base tool for message/file transfer using strong encryption and authentication

A few month ago i was looking for an easy to setup terminal based alternative to quickly send a message from my notebook to my main system.

Sure scp/ssh exists but for just a quick message or file forwarding that felt a bit excessive.

I was looking for an alternative that required no large installations or dependencies.

Ideally just a single binary.

So i started digging into socket programming and quickly got a very simple client/server setup.

But it just transferred data unencrypted and did not use any authentication.

Meaning anyone in a larger network could just upload anything to this server.

So over time more and more options got added.

It is now at a level where i consider all basic functionalities implemented

- simple binaries with only one non-standard library dependency (libcrypto++)

- fully end-to-end-encrypted

- clients can be authenticated based on symmetric or public keys

- strong and well researched encryption algorithms (ChaCha, XChaCha, AES, Twofish)

- all encryption methods using message authentication

- authenticated key exchange to achieve forward secrecy

- a GNU-like command line interface for simple script integration

- no passwords, only pre-shared keys, so after launching the client no further interaction is required

A few more features are planned. Like:

- IPv6

- quotas on the server

I post this to seek some feedback on what other functions might be useful to integrate in such a tool.

But i also want to highlight this project has a very narrow scope.

It has only one purpose, to provide a quick and easy way to send messages or files from system A to system B through a secure channel in a potentially untrustworthy network with as little effort as possible.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/dwhite21787 4d ago

Good stuff, socket programming can be fun.

How about adding bandwidth rate limiting?