helpers

package
v0.0.0-...-eeb60d1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptFile

func DecryptFile(filePath string, key []byte) error

func Encrypt

func Encrypt(password string) string

func EncryptFile

func EncryptFile(plainText []byte, key []byte) ([]byte, error)

func GenerateUUID

func GenerateUUID() (string, error)

func ReadFileContent

func ReadFileContent(file *multipart.FileHeader) ([]byte, error)

func SaveEncryptedFile

func SaveEncryptedFile(file *multipart.FileHeader, destDir string, key []byte) (string, error)

func SplitBySpaceComma

func SplitBySpaceComma(input []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