utils

package
v1.0.2-0...-f83ea57 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountDecimal

func ByteCountDecimal(b int64) string

func Decrypt

func Decrypt(ciphertext []byte, key *[32]byte) (plaintext []byte, err error)

func Dice

func Dice(i int) string

func Encrypt

func Encrypt(plaintext []byte, key *[32]byte) (ciphertext []byte, err error)

func FileExists

func FileExists(name string) bool

func FileHash

func FileHash(name string) (hash string)

func GetIPAddrAndPort

func GetIPAddrAndPort() (string, string)

func NewEncryptionKey

func NewEncryptionKey() *[32]byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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