md5salted

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package md5salted provides hashing and verification of md5 encoded passwords prefixed or suffixed with 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

View Source
const (
	Identifier         = "md5salted"
	IdentifierSuffixed = Identifier + "-suffix"
	IdentifierPrefixed = Identifier + "-prefix"
	Prefix             = "$" + Identifier

	Format = "$%s$%s$%s"
)

Variables

Functions

func Verify

func Verify(encoded, password string) (verifier.Result, error)

Verify parses encoded and verifies password against the checksum.

Types

This section is empty.