pwds

package
v4.0.0-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package pwds is used to create and validate bcrypt passwords. This is just a wrapper aroung golang.org/x/crypto/bcrypt that makes it easier to use.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPassword = errors.New("invalidPassword")

ErrInvalidPassword is thrown when a password and a given hash do not validate

Functions

func Create

func Create(input string) string

Create creates a password hash from a supplied plain text password

func Verify

func Verify(rawPassword string, hashedPassword string) (bool, error)

Verify checks if a given password is correct against a provided hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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