scrypt

package
v0.0.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScryptCrypto

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

NewScryptCrypto creates a new Scrypt crypto instance

Types

type ConfigValidator

type ConfigValidator struct {
}

func (ConfigValidator) Validate

func (v ConfigValidator) Validate(config *types.Config) interface{}

type Scrypt

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

Scrypt implements the Scrypt hashing algorithm

func (*Scrypt) Hash

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

Hash implements the hash method

func (*Scrypt) HashWithSalt

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

HashWithSalt implements the hash with salt method

func (*Scrypt) Verify

func (c *Scrypt) 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