hash

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHash

func CompareHash(hashedData, data string, algo HashAlgo) error

func Hash

func Hash(data string, algo HashAlgo) (string, error)

hash crée un hachage du mot de passe en fonction de l'algorithme spécifié

Types

type HashAlgo

type HashAlgo int

HashAlgo représente les algorithmes de hachage disponibles

const (
	SHA1 HashAlgo = iota
	SHA256
	SHA512
	MD5
	BCRYPT
)

Jump to

Keyboard shortcuts

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