utils

package
v0.0.0-...-f534f19 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlgorithmName  = "md5"
	HashIterations = 2
)

Variables

View Source
var (
	Suffix       = ".html"
	SESSION_USER = "ABLE_SESSION_USER"
)
View Source
var (
	SessionName    = beego.AppConfig.DefaultString("sessionname", "sid")
	DatabasePrefix = beego.AppConfig.DefaultString("database::db_prefix", "")
	Driver         = beego.AppConfig.String("database::db_driver")
)

Functions

func MD5

func MD5(source []byte) []byte

func MessageDigest

func MessageDigest(stype string, source []byte) []byte

func SHA256

func SHA256(source []byte) []byte

func SHA512

func SHA512(source []byte) []byte

func SecureRandom

func SecureRandom(numBytes int) []byte

func SecureRandomGenerator

func SecureRandomGenerator() string

func SimpleHash

func SimpleHash(algorithm string, source string, salt string, hashIterations int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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