/chatroom

:sparkles: An AES-256 encrypted chatroom server & client based on UDP

Primary LanguageGo

Chat Room

An AES-256 encrypted chatroom server & client based on UDP

简体中文

Language

  • Golang golang

Features

  • UDP protocol
  • Communication with Json format between C & S
  • Local configuration with Json format
  • AES-256 encryption
  • random KEY when running the server

Client

The client configuration file located at ~\chat-config.json.

Sample

{
	"listen": ":52915",
	"remote": "127.0.0.1",
	"key": "AzonXhdbWCYoAA52GTE9FnldZEN4KhEsInFJe1oHYAgzQTRsCyEdUlBOPzd3HxgFbTAudDZobiU8TQYbURBFWVdvMisNSn5UIw8kei0gcjl1cGkeFTV9U0tEY2YaCkdPYl9nZRQSBGsMQgFzVlxhL0hGAlV/O0A+OGoJfBwpE0w="
}

The user should set his ID and nickname when running the client.

./client

Server

The client configuration file located at~\chat-config.json.

Sample

{
	"listen": ":52915",
	"remote": "", //can be empty
	"key": "AzonXhdbWCYoAA52GTE9FnldZEN4KhEsInFJe1oHYAgzQTRsCyEdUlBOPzd3HxgFbTAudDZobiU8TQYbURBFWVdvMisNSn5UIw8kei0gcjl1cGkeFTV9U0tEY2YaCkdPYl9nZRQSBGsMQgFzVlxhL0hGAlV/O0A+OGoJfBwpE0w="
}

./server

Reference

https://github.com/digitalis-io/golang-udp-chat

https://github.com/gwuhaolin/lightsocks