CryptoChat 消息安全传递 加密聊天

CryptoChat 消息安全传递 加密聊天

CryptoChat简介

欢迎来到CryptoChat – 对话保持真正的私密性。我们的应用程序建立在强大的 Python 生态系统之上,可确保您发送的每个单词都经过加密层封装。无论您是讨论敏感的业务细节还是分享个人故事,CryptoChat都能为您提供数字时代所需的庇护所。潜入并体验更高水平的安全消息传递!

CryptoChat的特点🌟

  1. 端到端加密:每条消息从发送者到接收者都受到保护,确保最大程度的隐私。
  2. 用户友好的界面:导航和消息传递直观而简单,使安全对话变得轻而易举。
  3. 多平台支持:无论是在桌面还是移动设备上,CryptoChat始终触手可及。
  4. 强大的后端:建立在强大的Python生态系统之上,我们的聊天可靠且快速。
  5. 开源:深入研究我们的代码库,做出贡献,并使其对每个人来说都更好。
  6. 多媒体支持:不仅仅是文本 – 轻松发送加密的图像、视频和文件。(演示)
  7. 群聊:同时与多人进行加密对话。
  8. 自适应加密模式:根据您的需要选择未加密和加密聊天模式

要求

  • Python 3.x
  • cryptography
  • colorama

安装方法

  • 克隆存储库:
git clone https://github.com/HalilDeniz/CryptoChat.git
  • 导航到项目目录:
cd CryptoChat
  • 安装所需的依赖项:
pip install -r requirements.txt

用法🚀

未加密版本

$ python3 server.py --help
usage: server.py [-h] [--host HOST] [--port PORT] [--loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--logfile LOGFILE]

Start the chat server.

options:
-h, --help            show this help message and exit
--host HOST           The IP address to bind the server to. (Default: 0.0.0.0)
--port PORT           The port number to bind the server to. (Default: 12345)
--loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                     Set the logging level (Default: INFO)
--logfile LOGFILE     Set the log file name. (Default: server.log
--------------------------------------------------------------------------
$ python3 client.py --help
usage: client.py [-h] [--host HOST] [--port PORT]

Connect to the chat server.

options:
-h, --help   show this help message and exit
--host HOST  The server's IP address.
--port PORT  The port number of the server.

加密版本

$ python3 serverE.py --help
usage: serverE.py [-h] [--host HOST] [--port PORT] [--key KEY] [--loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--logfile LOGFILE]

Start the chat server.

options:
  -h, --help            show this help message and exit
  --host HOST           The IP address to bind the server to. (Default=0.0.0.0)
  --port PORT           The port number to bind the server to. (Default=12345)
  --key KEY             The secret key for encryption. (Default=mysecretpassword)
  --loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Set the logging level (Default: INFO)
  --logfile LOGFILE     Set the log file name. (Default: server.log)
--------------------------------------------------------------------------
$ python3 clientE.py --help
usage: clientE.py [-h] [--host HOST] [--port PORT] [--key KEY]

Connect to the chat server.

options:
  -h, --help   show this help message and exit
  --host HOST  The IP address to bind the server to. (Default=127.0.0.1)
  --port PORT  The port number to bind the server to. (Default=12345)
  --key KEY    The secret key for encryption. (Default=mysecretpassword)
  • --help :显示此帮助消息并退出
  • --host :绑定服务器的IP地址。
  • --port :绑定服务器的端口号。
  • --key  :加密的密钥
  • --loglevel:设置日志记录级别
  • --logfile:设置日志文件名

程序内的帮助菜单

python3 clientE.py 
Enter your username: deniz
Help Menu:
	/help       -> Help menu
deniz: Enter your message: /help
deniz: Enter your message: 
Help Menu:
	/help                           -> Help Menu
	/exit                           -> Exit the program.
  	/clear                          -> Clear the chat screen.
	/userlist                       -> View the list of connected users.
	/dm [user] [message]            -> Send a direct message to a user.
	/changeuser [new_username]      -> Change your username.

deniz: Enter your message: 

聆听者

我编写了一个监听工具来查看加密消息是否正常工作

└─# python3 SCsniff.py 
IP Packet: Source IP=127.0.0.1, Destination IP=127.0.0.1
TCP Packet: Source Port=12345, Destination Port=50968
Raw Data: b'gAAAAABlOlxawZboULf0WJkQQkzVwJKLXbGh3qyxWYbaCqNhi5xLwhR9YdckSiPiPQCkWHHGSzKAKG5pW3HyatQnpekoR0Zl-_DH-WH_azjGm86QGW1PRnE='
--------------------------------------------------
IP Packet: Source IP=127.0.0.1, Destination IP=127.0.0.1
TCP Packet: Source Port=12345, Destination Port=50968
Raw Data: b'gAAAAABlOlxawZboULf0WJkQQkzVwJKLXbGh3qyxWYbaCqNhi5xLwhR9YdckSiPiPQCkWHHGSzKAKG5pW3HyatQnpekoR0Zl-_DH-WH_azjGm86QGW1PRnE='
--------------------------------------------------
IP Packet: Source IP=127.0.0.1, Destination IP=127.0.0.1
TCP Packet: Source Port=50968, Destination Port=12345
--------------------------------------------------
TCP Packet: Source Port=42228, Destination Port=12345
Raw Data: b'gAAAAABlOlyHDfYapDc2kawoEjNozSJybZBk0SxZwMiE2_x9OffGGc-NlaB3FHJue6jY3rQbBKseCkDATpnBgJRxLJQA6heDlw=='
--------------------------------------------------
IP Packet: Source IP=127.0.0.1, Destination IP=127.0.0.1
TCP Packet: Source Port=42228, Destination Port=12345
Raw Data: b'gAAAAABlOlyHDfYapDc2kawoEjNozSJybZBk0SxZwMiE2_x9OffGGc-NlaB3FHJue6jY3rQbBKseCkDATpnBgJRxLJQA6heDlw=='
--------------------------------------------------
IP Packet: Source IP=127.0.0.1, Destination IP=127.0.0.1
TCP Packet: Source Port=12345, Destination Port=42228
Raw Data: b'gAAAAABlOlyHyCO4dV50WtplQ8eZxbH8d9xuL04iGsrbjhU-oFlguaaig0vjRd7GVvLiBm5Js6kFYHpc6esuTkDrmabq-k1DdSrlEHOgvdaMotxMMg5KEL8='
--------------------------------------------------
IP Packet: Source IP=127.0.0.1, Destination IP=127.0.0.1
TCP Packet: Source Port=12345, Destination Port=42228
Raw Data: b'gAAAAABlOlyHyCO4dV50WtplQ8eZxbH8d9xuL04iGsrbjhU-oFlguaaig0vjRd7GVvLiBm5Js6kFYHpc6esuTkDrmabq-k1DdSrlEHOgvdaMotxMMg5KEL8='
--------------------------------------------------

IP Packet: Source IP=127.0.0.1, Destination IP=127.0.0.1
TCP Packet: Source Port=42228, Destination Port=12345
Raw Data: b'gAAAAABlOlyPKyzTR_-1LFSNLtBCR5sghmont3299N9QWrQhHXzwo1Y-toax3Xh4f3PQ5cG-8QuOpM9ApGFoxkVGbpH4Bfhy9iYduQgwYy59kChiGwIQ1rI='
--------------------------------------------------
IP Packet: Source IP=127.0.0.1, Destination IP=127.0.0.1
TCP Packet: Source Port=42228, Destination Port=12345
Raw Data: b'gAAAAABlOlyPKyzTR_-1LFSNLtBCR5sghmont3299N9QWrQhHXzwo1Y-toax3Xh4f3PQ5cG-8QuOpM9ApGFoxkVGbpH4Bfhy9iYduQgwYy59kChiGwIQ1rI='
--------------------------------------------------

截图

CryptoChat 消息安全传递 加密聊天

下载地址

GitHub:
https://github.com/HalilDeniz/CryptoChat.zip

项目地址

GitHub:
https://github.com/HalilDeniz/CryptoChat

转载请注明出处及链接

Leave a Reply

您的电子邮箱地址不会被公开。 必填项已用*标注