hash

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret struct {
	// contains filtered or unexported fields
}

func NewHash

func NewHash(inputSecret string) (Secret, error)

func Parse

func Parse(secret string) Secret

func (Secret) Compare

func (s Secret) Compare(inputHash string) bool

func (*Secret) Scan

func (s *Secret) Scan(value interface{}) error

Scan implements database/sql/driver Scanner interface. Scan parses a string value to hash (if valid) or returns error.

func (Secret) Value

func (s Secret) Value() string

Jump to

Keyboard shortcuts

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