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: 0 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址