hash

package
v0.0.0-...-20f649f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyEncoded

func VerifyEncoded(e Encoded, target string) (bool, error)

Types

type Encoded

type Encoded struct {
	// Hash will be converted to Base64 by json.Marshal
	Hash []byte `json:"h"`
	// Salt will be converted to Base64 by json.Marshal
	Salt []byte `json:"s"`

	Time   uint32 `json:"t"`
	Memory uint32 `json:"m"`
	KeyLen uint32 `json:"k"`
}

func CreateEncoded

func CreateEncoded(password string) (Encoded, error)

Jump to

Keyboard shortcuts

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