secret

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 10 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

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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