cipher

package
v0.0.0-...-73dbb82 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AesKey string
	AesIv  string
}

Config struct,Define AES KEY,IV

type NewCipher

type NewCipher struct {
}

func New

func New() *NewCipher

func (*NewCipher) Decrypt

func (e *NewCipher) Decrypt(decryptText string, config Config) ([]byte, error)

Decrypt 解密

func (*NewCipher) Encrypt

func (e *NewCipher) Encrypt(data []byte, config Config) (string, error)

Encrypt 加密

Jump to

Keyboard shortcuts

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