argon2

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 8 Imported by: 0

README

Argon2

A dead simple utility for hashing and validating argon2 passwords.

This is just a wrapper around the standard go argon2 package.

Usage

password := "hello world"

hashed, _ := HashPassword(password)

valid, _ := ValidatePassword("hello world", hashed)

Installation

go get gitlab.com/projet-iota/go/argon2

License

This project is licensed under the terms of the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) (string, error)

HashPassword generates a pwd hash using default parameters

func ValidatePassword

func ValidatePassword(password string, encoded string) (valid bool, err error)

ValidatePassword validates that a password matches the encoded version

Types

This section is empty.

Jump to

Keyboard shortcuts

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