Skip to content

Minichat is a udp chat tool based on console user interface, intranet penetration is required before use.

Notifications You must be signed in to change notification settings

fooage/minichat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For those who are accustomed to the terminal interface, minichat has a certain effect. The message is transmitted through the established udp connection, and then the message encryption module will be added. Need to be used with the support of intranet penetration.

Obtain

After cloning from Github, you can use the go compiler to compile.

git clone https://github.com/fooage/minichat.git
# Move to the directory and compile it.
go build
  • Tips: An error may occur if the terminal is not UTF-8 encoded!
  • Tips: Please ping your target address before use minichat.

Use the Ctrl + C quit this, or use the Cmd + C on mac.

Parameter

Main structure

Before introducing the parameters, it is important to understand the structure of the handler.

type Handler struct {
	// The message receive channel.
	Buf chan []byte
	// Key for AES encryption.
	AesKey []byte
	// Which is client's listen address and connection with the other client.
	LocalAddr  string
	RemoteAddr string
}

Configuration file

Manage software settings information with configuration files in the root directory.

address:
  # Relevant configuration of network connection address.
  local: 127.0.0.1:10000
  remote: 127.0.0.1:11000

crypto:
  # AES encryption related configuration.
  key: '8SMEE7ieNjSWVFqq'
  • local

Set the host address and listening port, the default is 127.0.0.1:10000.

  • remote

Set the target address and listening port, the default is 127.0.0.1:11000.

  • key

Set the key for encryption the data, the default is 8SMEE7ieNjSWVFqq, and key's length must be 128bit, 192bit or 256bit.

Expection

This is the original version, there may be some mistakes, hope the ace coder can point it out.

About

Minichat is a udp chat tool based on console user interface, intranet penetration is required before use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages