encrydecry

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte, key string) ([]byte, error)

func Encode

func Encode(data []byte, key string) ([]byte, error)

Types

type EncryDecry

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

func NewEncryDecry

func NewEncryDecry(secret string) EncryDecry

主要用于配置加解密,secret必须8字节

func (EncryDecry) Decryption

func (o EncryDecry) Decryption(str string) string

func (EncryDecry) Encryption

func (o EncryDecry) Encryption(str string) string

Jump to

Keyboard shortcuts

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