util

package
v0.0.0-...-743c3d5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-3.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUUID

func GenerateUUID() string

func GenerateUserToken

func GenerateUserToken(userID string) (string, time.Time)

func ProtectPII

func ProtectPII(pii string) (string, error)

ProtectPII protects PII data at rest

func ProtectPassword

func ProtectPassword(password string) string

ProtectPassword returns the Base64-encoded protected password

func ProtectUserID

func ProtectUserID(userID string) (string, error)

ProtectUserID protects the email address used as user identifier

func VerifyPassword

func VerifyPassword(submitted, base64Blob string) bool

VerifyPassword verifies the submitted password against the actual one

func X509KeyPair

func X509KeyPair(keystorePath string, serverKeyPass *[]byte) (tls.Certificate, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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