Skip to content

Golang Chat TUI application that utilizes OpenPGP to encrypt messages sent and received with p2p capabilities.

License

Notifications You must be signed in to change notification settings

nigel-dev/pgp-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Golang Chat TUI application that utilizes OpenPGP to encrypt messages sent and received with p2p capabilities.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages