util

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAES

func DecryptAES(block cipher.Block, text []byte) ([]byte, error)

DecryptAES decryptes text with key using AES-256 GCM

func EncryptAES

func EncryptAES(block cipher.Block, text []byte) ([]byte, error)

EncryptAES encrypts text with key using AES-256 GCM

func PostRaw

func PostRaw(url string, body map[string]interface{}) error

Sends a POST request to the given url with the given data

func Substring

func Substring(input string, start int, length int) string

substring function (credit to https://stackoverflow.com/questions/12311033/extracting-substrings-in-go)

Types

This section is empty.

Jump to

Keyboard shortcuts

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