utils

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Space = "                "

Functions

func CalcTotalPage

func CalcTotalPage(total, pageSize int) int

func DecryptAesInCFB

func DecryptAesInCFB(ciphertext []byte, key []byte, iv []byte) []byte

func EncryptAesInCFB

func EncryptAesInCFB(plaintext []byte, key []byte, iv []byte) []byte

func Exists

func Exists(path string) bool

判断所给路径文件/文件夹是否存在

func FindInSlice

func FindInSlice(keyword string, slice []string) bool

func GenHMacKey

func GenHMacKey(data []byte, salt []byte) []byte

func GenRandIV

func GenRandIV() []byte

func IsDir

func IsDir(path string) bool

判断所给路径是否为文件夹

func IsSecurePassword added in v0.0.14

func IsSecurePassword(s string) bool

func Min

func Min(a, b int) int

func Sha256N

func Sha256N(plaintext string, n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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