secret

package
v1.66.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAuthorization

func DecryptAuthorization(token, secretKey string, iv []byte) (string, string, error)

func Ecb16Decrypt

func Ecb16Decrypt(data string, needEncrypt, needZip bool, aes *symmetric.AES) (any, error)

func Ecb16Encrypt

func Ecb16Encrypt(data any, needEncrypt, needZip bool, aes *symmetric.AES) (string, error)

func EncryptAuthorization

func EncryptAuthorization(key, secretKey string, iv []byte, randStr ...string) (string, string, error)

func MustEncrypt

func MustEncrypt(data any) (string, error)

Types

type APP

type APP struct {
	Asymmetric asymmetric.APP
	Symmetric  symmetric.APP
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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