package sha512_crypt

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

Package sha512_crypt implements Ulrich Drepper's SHA512-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   = "$6$"
	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 SHA512-crypt password hashing.

Source Files

sha512_crypt.go

Version
v1.0.1
Published
Jan 10, 2020
Platform
js/wasm
Imports
5 packages
Last checked
1 day ago

Tools for package owners.