hash

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBcryptCost = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Argon2

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

func NewArgon2

func NewArgon2() *Argon2

func NewArgon2With

func NewArgon2With(config Argon2Config) *Argon2

func (*Argon2) Check

func (h *Argon2) Check(value []byte, hash []byte) (bool, error)

func (*Argon2) Hash

func (h *Argon2) Hash(value []byte) ([]byte, error)

type Argon2Config

type Argon2Config = argon2.Config

type Bcrypt

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

func NewBcrypt

func NewBcrypt() *Bcrypt

func NewBcryptWith

func NewBcryptWith(options BcryptOptions) *Bcrypt

func (*Bcrypt) Check

func (h *Bcrypt) Check(value []byte, hash []byte) (bool, error)

func (*Bcrypt) Hash

func (h *Bcrypt) Hash(value []byte) ([]byte, error)

type BcryptOptions

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

Jump to

Keyboard shortcuts

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