package md5_crypt

import "github.com/tredoe/osutil/user/crypt/md5_crypt"

Package md5_crypt implements the standard Unix MD5-crypt algorithm created by Poul-Henning Kamp for FreeBSD.

Index

Constants

const (
	MagicPrefix   = "$1$"
	SaltLenMin    = 1 // Real minimum is 0, but that isn't useful.
	SaltLenMax    = 8
	RoundsDefault = 1000
)

Functions

func GetSalt

func GetSalt() common.Salt

func New

func New() crypt.Crypter

New returns a new crypt.Crypter computing the MD5-crypt password hashing.

Source Files

md5_crypt.go

Version
v1.5.0 (latest)
Published
Jun 4, 2024
Platform
linux/amd64
Imports
4 packages
Last checked
1 day ago

Tools for package owners.