Skip to content

1enrique3/go-pwdhash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwdhash

pwdhash is a Go module that allows you to hash passwords using Argon2id.

package main

import (
	"fmt"
	"log"

	"github.com/1enrique3/go-pwdhash/argon2"
)

func main() {
	hash, err := argon2.Default.Hash([]byte("password"))
	if err != nil {
		log.Fatal(err)
	}

	fmt.Printf("Hash: %s", hash)
}