secret

package
v2.21.10 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret struct{}
var SecretHelper Secret

func (Secret) DecryptAuthorization

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

func (Secret) Ecb16Decrypt

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

func (Secret) Ecb16Encrypt

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

func (Secret) EncryptAuthorization

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

func (Secret) MustEncrypt

func (Secret) MustEncrypt(data any) (string, error)

func (Secret) New

func (Secret) New() *Secret

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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