raw

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinRounds = 1
	MaxRounds = 0x7fffffff // setting at 32-bit limit for now
)

Variables

View Source
var ErrInvalidRounds = fmt.Errorf("invalid number of rounds")

Indicates that the number of rounds specified is not in the valid range.

View Source
var ErrInvalidStub = fmt.Errorf("invalid stub")

Indicates that a password hash or stub is invalid.

Functions

func Base64Decode

func Base64Decode(src string) (dst []byte, err error)

func Base64Encode

func Base64Encode(src []byte) (dst string)

func Hash

func Hash(password, salt []byte, rounds int, hf func() hash.Hash) (hash string)

func Parse

func Parse(stub string) (hashFunc func() hash.Hash, rounds int, salt []byte, hash string, 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