secret

package
v0.6.15 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword added in v0.1.1

func HashPassword(p []byte) (v []byte, err error)

func Sign

func Sign(target []byte, key []byte) (signature []byte)

func ValidatePassword added in v0.1.1

func ValidatePassword(hashed []byte, plain []byte) (ok bool)

func Verify

func Verify(target []byte, signature []byte, key []byte) (ok bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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