util

package
v0.0.0-...-6b39e2e Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DomainHashFromAddress

func DomainHashFromAddress(addr string) (string, error)

DomainHashFromAddress returns a byte slice containing the SHA1 hash of the domain in an email address.

func GenerateSecureID

func GenerateSecureID(length int) string

GenerateSecureID creates a secure ID to use as a CSRF key or a Message ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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