Let's GO Chat
Description
This is a chat application that allows users to communicate with each other in real-time.
Features
- User authentication (under development)
- Real-time messaging (under development)
Technologies
Installation
- Clone the repository
bash git clone https://github.com/2f4ek/lets-go-chat
- Go to the main app directory
cd cmd/app
- Install dependencies
bash go get
- Run the server
bash go run main.go
Import
To Import a hasher package just run the get command go get github.com/2f4ek/lets-go-chat/pkg/hasher
Usage
Please note that currently only the features described below are available. All other functionality is under development.
Functions:
func HashPassword(password string) string
This function is used to hash a user's password for security purposes.
password
- A string representing the user's password.
Output
- A string representing the hashed password.
Usage
hashedPassword := HashPassword("password")
CheckPasswordHash(password, hash string) bool
This function is used to check if a given password matches a given hash.
password
- A string representing the user's password.
hash
- A string representing the hashed password.
Output
- A boolean value indicating whether the password matches the hash or not.
Usage
isMatch := CheckPasswordHash("password", hashedPassword)
License This project is licensed under the MIT License - see the LICENCE file for details.