md5

package
v0.3.23 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig added in v0.3.18

func DefaultConfig() *types.Config

func NewMD5 added in v0.3.18

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

NewMD5 creates a new MD5 crypto instance

Types

type ConfigValidator

type ConfigValidator struct {
}

func (ConfigValidator) FromMap added in v0.3.18

func (v ConfigValidator) FromMap(params map[string]string) error

func (ConfigValidator) String added in v0.3.18

func (v ConfigValidator) String() string

func (ConfigValidator) ToMap added in v0.3.18

func (v ConfigValidator) ToMap() map[string]string

func (ConfigValidator) Validate

func (v ConfigValidator) Validate(config *types.Config) error

type MD5

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

MD5 implements the MD5 hashing algorithm

func (*MD5) Hash

func (c *MD5) Hash(password string) (*types.HashParts, error)

Hash implements the hash method

func (*MD5) HashWithSalt

func (c *MD5) HashWithSalt(password string, salt []byte) (*types.HashParts, error)

HashWithSalt implements the hash with salt method

func (*MD5) Type

func (c *MD5) Type() types.Type

func (*MD5) Verify

func (c *MD5) Verify(parts *types.HashParts, 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