utils

package
v0.0.0-...-326830c Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SaltSize = 32

Define salt size

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(password string, salt string, hash string) bool

func GenPubKeyHex

func GenPubKeyHex(PrivateKey string) string

func GenerateRandomSalt

func GenerateRandomSalt(saltSize int) string

GenerateRandomSalt generates a random salt byte slice

func ReadResponseBody

func ReadResponseBody(body io.ReadCloser) []byte

func SaltAndHashPassword

func SaltAndHashPassword(password string, salt string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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