raw

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	ErrInvalidRounds = errors.New("invalid number of rounds")
	ErrInvalidStub   = errors.New("invalid stub")
)

Functions

func Base64Decode

func Base64Decode(src string) ([]byte, 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