Encrypted Messaging CLI Software
Simplicity in implementation -- ~170 lines of code.
Simplicity in usage.
Overall, this is a tutorial example for those interested in a node.js/encryption/sockets.
It's not a "serious" project (at least not yet -- feature requests and contributions are more than welcome).
To the best it can be.
NOTE: This tool has not been audited and is NOT for production use.
- Diffie-Hellman
- zip option for file transfer
- prettier UI
- choice of encryption method
- choice of download location
Install node.js
Repo https://github.com/maelswarm/whisp-chat.git or npm i whisp-chat
Have both parties decide on two mutual passwords.
These will be used for the AES-256-cfb cipher (used to secure the given parties data transfers).
Command Schema
node app.js --src=<host>:<port> --dest=<destinationhost>:<destinationport> --secret=<password1>:<password2>
For a quick test, open two terminals on your computer and enter the following commands.
Terminal 1:
node app.js --src=127.0.0.1:4321 --dest=127.0.0.1:1234 --secret=breadandjam:butterybutter
Terminal 2:
node app.js --src=127.0.0.1:1234 --dest=127.0.0.1:4321 --secret=breadandjam:butterybutter
Type text and hit enter.
For sending a file type !file:<filepath>
and hit enter.
Do not expect a chat message to be received by the destination while a file transfer is already occuring.
It will be received by the destination after the file transfer.
Files are downloaded into your home directory downloads.