crypto

package
v0.0.0-...-60da083 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswordAndHash

func ComparePasswordAndHash(password string, hash string) (bool, error)

ComparePasswordAndHash does a constant time comparison between a plaintex password and a hash.

func CreateHash

func CreateHash(pw string) (string, error)

CreateHash creates a hash from a string

func RandomString

func RandomString() string

RandomString creates a random 16 byte string using crypto/rand.

Types

This section is empty.

Jump to

Keyboard shortcuts

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