util

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PASSWORD_LENGTH int = 16

Functions

func CreateHashWithSalt

func CreateHashWithSalt(password string, salt []byte, params *argon2id.Params) string

func Decrypt

func Decrypt(enc, key string) (string, error)

func DownloadResources

func DownloadResources(resources []Resource, path string) error

func Encrypt

func Encrypt(str, key string) (string, error)

func GeneratePassword

func GeneratePassword() (string, error)

func GenerateRandomKey

func GenerateRandomKey() (string, error)

Types

type Resource

type Resource struct {
	Link     string
	FileName string
}

Jump to

Keyboard shortcuts

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