md5

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: MIT Imports: 8 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) (scheme.Scheme, error)

NewMD5 creates a new MD5 crypto instance

Types

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) Spec added in v1.1.0

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

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