md5plain

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package md5plain provides verification of plain md5 digests of passwords without salt.

Note that md5 is considered cryptographically broken and should not be used for new applications. This package is only provided for legacy applications that wish to migrate away from md5 to newer hashing methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier struct{}

func NewVerifier added in v0.12.0

func NewVerifier() *Verifier

func (*Verifier) Validate added in v0.12.0

func (v *Verifier) Validate(digest string) (verifier.Result, error)

func (*Verifier) Verify added in v0.12.0

func (v *Verifier) Verify(digest, password string) (verifier.Result, error)

Verify an plain md5 digest without salt. Digest must be hex encoded.

Note that md5 digests do not have an identifier. Therefore it might be that Verify accepts any hex encoded string but fails password verification.

Jump to

Keyboard shortcuts

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