security

package
v0.0.0-...-fa930de Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(password string) ([]byte, error)

Hash takes a string and returns a byte array and an error The byte array is the hashed version of the string The error is nil if the hashing was successful

func VerifyPassword

func VerifyPassword(hashedPassword, password string) error

VerifyPassword takes a hashed password and a plain text password It returns an error if the plain text password does not match the hashed password

Types

This section is empty.

Jump to

Keyboard shortcuts

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