tools

package
v0.0.0-...-c89eb6e Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MailTemplate = `` /* 2581-byte string literal not displayed */

Functions

func DecryptAES

func DecryptAES(encryptedStr string, key []byte) ([]byte, error)

DecryptAES decrypts base64 encoded string using AES-GCM

func EncryptAES

func EncryptAES(plaintext []byte, key []byte) (string, error)

EncryptAES encrypts data using AES-GCM and returns base64 encoded string

func RandomString

func RandomString(n uint) (string, error)

Generates a random verification for an ad

func SendEmail

func SendEmail(to, subject, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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