util

package
v0.0.0-...-f242e82 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomHEX

func GenerateRandomHEX(size int) string

GenerateRandomHEX returns random hex number in string format by the given size (in bytes).

func GenerateSecret

func GenerateSecret(plain, salt string, len int) string

GenerateSecret returns hashed string from combination of plain and salt. It presented in base64 format. The used algorithm is sha512.

func GenerateTimestampWithPrefix

func GenerateTimestampWithPrefix(prefix string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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