passhash

package
v0.0.0-...-cee7a81 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package passhash provides password hashing functionality using bcrypt.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashBytes

func HashBytes(password []byte) ([]byte, error)

HashBytes returns a hashed byte array and an error.

func HashString

func HashString(password string) (string, error)

HashString returns a hashed string and an error.

func MatchBytes

func MatchBytes(hash, password []byte) bool

MatchBytes returns true if the hash matches the password.

func MatchString

func MatchString(hash, password string) bool

MatchString returns true if the hash matches the password.

Types

This section is empty.

Jump to

Keyboard shortcuts

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