cryptox

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Argon2Compare

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

func Argon2Hash

func Argon2Hash(password string) (string, error)

func Argon2HashWithConfig

func Argon2HashWithConfig(c *PasswordConfig, password string) (string, error)

func BcryptCompare

func BcryptCompare(hashedPwd string, plainPwd string) bool

func BcryptHash

func BcryptHash(password string) (string, error)

Types

type PasswordConfig

type PasswordConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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