utils

package
v0.0.0-...-521bf69 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

func Decrypt

func Decrypt(data []byte, salt []byte, iv []byte, key []byte) []byte

func Deflate

func Deflate(data []byte) []byte

func Encrypt

func Encrypt(data []byte, key []byte, salt *[32]byte) (ciphertext []byte, iv []byte, keysalt []byte)

func GenKey

func GenKey(key, salt []byte) []byte

func GenSalt

func GenSalt() *[32]byte

func GenerateID

func GenerateID(n int) string

func HashID

func HashID(id []byte) []byte

func Inflate

func Inflate(data []byte) []byte

func InitLogger

func InitLogger(cfg *config.Config)

Types

This section is empty.

Jump to

Keyboard shortcuts

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