package apr1_crypt

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

Package apr1_crypt implements the standard Unix MD5-crypt algorithm created by Poul-Henning Kamp for FreeBSD, and modified by the Apache project.

The only change from MD5-crypt is the use of the magic constant "$apr1$" instead of "$1$". The algorithms are otherwise identical.

Index

Constants

const (
	MagicPrefix   = "$apr1$"
	SaltLenMin    = 1
	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 variant "apr1" of MD5-crypt

Source Files

apr1_crypt.go

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

Tools for package owners.