cryptoo

package
v0.0.0-...-efd50ba Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(duration time.Duration) string

func MD5

func MD5(s string) string

MD5 Generate 32-bit MD5 strings

func RandNum

func RandNum(n int) string

func RandString

func RandString(n int) string

func RandToken

func RandToken() string

func SHA1

func SHA1(s string) string

Types

type ConnAes

type ConnAes struct {
	// contains filtered or unexported fields
}

func NewConnAes

func NewConnAes(key string, iv string) (ConnAes, error)

func (*ConnAes) Decrypt

func (ca *ConnAes) Decrypt(src []byte) ([]byte, error)

func (*ConnAes) Encrypt

func (ca *ConnAes) Encrypt(src []byte) []byte

Jump to

Keyboard shortcuts

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