package sha256_crypt

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

Package sha256_crypt implements Ulrich Drepper's SHA256-crypt password hashing algorithm.

The specification for this algorithm can be found here: http://www.akkadia.org/drepper/SHA-crypt.txt

Index

Constants

const (
	MagicPrefix   = "$5$"
	SaltLenMin    = 1
	SaltLenMax    = 16
	RoundsMin     = 1000
	RoundsMax     = 999999999
	RoundsDefault = 5000
)

Functions

func GetSalt

func GetSalt() common.Salt

func New

func New() crypt.Crypter

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

Source Files

sha256_crypt.go

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

Tools for package owners.