utils

package
v0.0.0-...-07f2725 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64

func Base64(lngth int) string

func ByteArray

func ByteArray(lngth int) ([]byte, error)

func DoPasswordsMatch

func DoPasswordsMatch(hashedPassword, currPassword string,
	salt string) bool

checks if passwords are the same

func GenerateKeys

func GenerateKeys()

This function generates an RS256 key pair Only if files are not existing

func GenerateToken

func GenerateToken() string

func GenerateUUID

func GenerateUUID() string

UUID generator

func HashPassword

func HashPassword(pwd string) string

hashes the password

Types

This section is empty.

Jump to

Keyboard shortcuts

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