utils

package
v0.0.0-...-4db56dd Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandom

func GenerateRandom(t Type) (string, error)

GenerateRandom generates a random string for either password or salt

func GetTest2

func GetTest2() string

func HashPass

func HashPass(password, salt []byte, iter, keyLen int) []byte

func HashPassScrypt

func HashPassScrypt(password, salt []byte, workFactor, blockSize, parallelismFactor, keyLen int) (string, error)

func PSQL

func PSQL() sq.StatementBuilderType

func PSQL1

func PSQL1() sq1.StatementBuilderType

Types

type MyUtils

type MyUtils struct {
	Test     string
	GetTest1 func() string
}

func (*MyUtils) GetDay

func (m *MyUtils) GetDay(t int64) string

func (*MyUtils) GetNextSalt

func (m *MyUtils) GetNextSalt() ([]byte, error)

func (*MyUtils) GetTest

func (m *MyUtils) GetTest() string

func (*MyUtils) GetTime

func (m *MyUtils) GetTime() int64

func (*MyUtils) GetTime1Day

func (m *MyUtils) GetTime1Day() int64

func (*MyUtils) GetYear

func (m *MyUtils) GetYear() int

type Type

type Type int
const (
	GeneratePassword Type = iota
	GenerateSalt
)

Directories

Path Synopsis
Package squirrel provides a fluent SQL generator.
Package squirrel provides a fluent SQL generator.

Jump to

Keyboard shortcuts

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