salt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2014 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MagicPrefix   = []byte("$6$")
	RoundsDefault = 5000
	RoundsPrefix  = []byte("rounds=")
)

Functions

func New

func New(length, rounds int) []byte

New() generates a random salt of the given length, with the given rounds

func Parse

func Parse(rawsalt []byte) (s []byte, rounds int, isRoundsDef bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL