password

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 1 Imported by: 0

README

Password

Installation

go get -u github.com/gouniverse/password

Usage

  • Hash a password
password.Hash(password)
  • Verify a password against a hash
password.Verify(password, hash)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(password string) (string, error)

Hash Creates a password hash

func Verify

func Verify(password, hash string) bool

Verify verifies that a password matches a hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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