bcrypt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package bcrypt is an implementation of the hasher interface for bcrypt.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bcrypt

type Bcrypt struct {
}

Bcrypt is an Hasher implementation for bcrypt

func (Bcrypt) Hash

func (h Bcrypt) Hash(raw string) (string, error)

Hash returns a hash for the provided string

func (Bcrypt) IsValid

func (h Bcrypt) IsValid(hash, raw string) bool

IsValid checks if a hash and a string match

Jump to

Keyboard shortcuts

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