dummy

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig added in v0.0.21

func DefaultConfig() *types.Config

func NewDummyCrypto

func NewDummyCrypto(config *types.Config) (interfaces.Cryptographic, error)

NewDummyCrypto creates a new dummy crypto instance

Types

type Crypto

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

Crypto implements a dummy hashing algorithm

func (*Crypto) Hash

func (c *Crypto) Hash(password string) (string, error)

Hash implements the hash method

func (*Crypto) HashWithSalt

func (c *Crypto) HashWithSalt(password, salt string) (string, error)

HashWithSalt implements the hash with salt method

func (*Crypto) Verify

func (c *Crypto) Verify(hashed, password string) error

Verify implements the verify method

Jump to

Keyboard shortcuts

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