gorestlib

package module
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPass

func HashPass(config HashPassConfig, pass string) (string, error)

HashPass - securely hash passwords using Argon2id

func RemoveAllSpace

func RemoveAllSpace(s string) string

RemoveAllSpace - remove all spaces and return the result as string

func ValidateEmail

func ValidateEmail(e string) bool

ValidateEmail - check if the email provided passes the required structure and length test. It also checks the domain has a valid MX record. Credit: Edd Turtle

Types

type HashPassConfig

type HashPassConfig struct {
	Memory      uint32
	Iterations  uint32
	Parallelism uint8
	SaltLength  uint32
	KeyLength   uint32
}

HashPassConfig - params for argon2id

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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