decryption

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (plugin.Plugin, error)

func XORBytes

func XORBytes(a, b []byte) []byte

Types

type CloudConfig

type CloudConfig struct {
	// CipherText 密码密文  IV sm4 cbc解密iv分量  Sm4ProtectKey sm4解密密钥保护密钥分量 Sm4EncKey sm4解密密钥加密分量
	Decryption struct {
		Type          string   `yaml:"type" json:"type"`
		CipherText    string   `yaml:"cipherText" json:"cipherText"`
		IV            string   `yaml:"iv" json:"iv"`
		Sm4ProtectKey []string `yaml:"sm4ProtectKey" json:"sm4ProtectKey"`
		Sm4EncKey     string   `yaml:"sm4EncKey" json:"sm4EncKey"`
	} `yaml:"decryption" json:"decryption" default:"{}"`
}

type Decryption

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

func (*Decryption) Close

func (d *Decryption) Close() (err error)

func (*Decryption) Decrypt

func (d *Decryption) Decrypt(cipherText string) (string, error)

Jump to

Keyboard shortcuts

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