secret

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Password

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

Password is our secret service implementation

func New

func New(salt string) (*Password, error)

New returns a password object

func (*Password) HashMatches

func (p *Password) HashMatches(h1, h2 string) bool

func (*Password) HashMatchesCredentials

func (p *Password) HashMatchesCredentials(hash, password, login string) bool

func (*Password) HashString

func (p *Password) HashString(str string) string

type Service

type Service interface {
	HashString(str string) string
	HashMatchesCredentials(hash, password, login string) bool
	HashMatches(h1, h2 string) bool
}

Service is the interface to our secret service

Jump to

Keyboard shortcuts

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