lets-go-chat

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: MIT

README

Let's GO Chat

Go Reference Go Report Card

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

  • GoLang

Installation

  1. Clone the repository bash git clone https://github.com/2f4ek/lets-go-chat
  2. Go to the main app directory cd cmd/app
  3. Install dependencies bash go get
  4. Run the server bash go run main.go

Usage

Please note that currently only the features described below are available. All other functionality is under development.

Functions:

func HashPassword
func HashPassword(password string) string

This function is used to hash a user's password for security purposes.

Input
  • password - A string representing the user's password.
Output
  • A string representing the hashed password.
Usage
hashedPassword := HashPassword("password") 
func CheckPasswordHash
CheckPasswordHash(password, hash string) bool

This function is used to check if a given password matches a given hash.

Input
  • 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.

Directories

Path Synopsis
cmd
app command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL