pgp-chat

command module
v0.0.0-...-8ce4ff6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 1 Imported by: 0

README

Golang Chat TUI with OpenPGP encryption

This is a simple terminal user interface (TUI) chat application written in Golang that uses OpenPGP encryption to secure messages sent and received. The application has peer-to-peer (P2P) capabilities, which means that you can chat directly with other users without any centralized server.

The application uses the OpenPGP standard to encrypt messages and ensures that only the intended recipient(s) can read them. This is done by generating a unique public/private key pair for each user, and exchanging public keys with other users to establish a trust relationship. Once the trust relationship is established, users can exchange messages that are encrypted and signed with their private key.

The TUI interface is simple and intuitive, with a list of contacts on the right and a chat window on the left. Users can add new contacts by sharing their public key, and can start a chat by selecting a contact and typing a message. The application also supports basic commands, such as /help to show the list of available commands, /quit to exit the application, and /clear to clear the chat history.

This project is open-source and welcomes contributions from anyone interested in improving it. Feel free to clone the repository and submit pull requests with bug fixes, new features, or improvements to the documentation.

Getting started

To run the application, you need to have Golang installed on your system. Once you have Golang, you can clone the repository and build the application by running the following commands:

git clone https://github.com/nbazzeghin/pgp-chat.git
cd pgp-chat
go build .
./pgp-chat

GPG-Chat Notes

  • The chat app should make use of p2p and DHT to connect to peers.
  • Messages sent to other peers should be encrypted with GPG.
  • You must have all other users GPG keys to be able to send/receive messages from them.
    • Search keys.openpgp.org for keys
    • Ability to configure other key servers
    • Maybe impliment WKD searching (https://wiki.gnupg.org/WKD)
  • Messages you can not decrypt will not display in message window
  • Must use TLS for communication between nodes
  • Client mode will display TUI
  • Server mode will act as relay/bootstrap for p2p service
    • Maybe store and forward
    • football protocol
  • Default to starting client
Libraries
Reference
Other / Interesting

Contributing

Contributions are always welcome! If you want to contribute to this project, please follow these steps:

  1. Fork the repository
  2. Create a new branch for your changes
  3. Make your changes and commit them
  4. Push your changes to your fork
  5. Submit a pull request to the main repository

Please make sure to follow the code of conduct and the contribution guidelines when submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

Overview

Copyright © 2022 Nigel Bazzeghin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL