password

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package password provides functions to Hash and Verify PBKDF2/SHA256 passwords. The hashes are in '$pbkdf2-sha256$<N iter>$<salt>$<key>' format.

Index

Constants

This section is empty.

Variables

View Source
var Iterations = 25000

Iterations is the number of iterations used when hashing a password

Functions

func Hash

func Hash(password string) (string, error)

Hash returns a hashed string password in PBKDF2/SHA256 format

func Verify

func Verify(password, hash string) bool

Verify returns true if the given password matches with the given hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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