secret

package
v1.51.21 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 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 Launch

type Launch

type Launch struct {
	Asymmetric struct {
		Rsa       asymmetric.Rsa
		PemBase64 asymmetric.PemBase64
	}
	Symmetric struct {
		Cbc        symmetric.Cbc
		Aes        symmetric.Aes
		AesEncrypt symmetric.AesEncrypt
		AesDecrypt symmetric.AesDecrypt
		Ecb        symmetric.Ecb
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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