nodeutils

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64DecodeMap

func Base64DecodeMap(encodedString string) (maps.Map, error)

Base64DecodeMap 对Map进行Base64解码

func Base64EncodeMap

func Base64EncodeMap(m maps.Map) (string, error)

Base64EncodeMap 对Map进行Base64编码

func DecryptData

func DecryptData(nodeUniqueId string, nodeSecret string, encodedString string) ([]byte, error)

DecryptData 解密

func DecryptMap added in v0.6.4

func DecryptMap(nodeUniqueId string, nodeSecret string, encodedString string) (maps.Map, error)

DecryptMap 解密

func EncryptData

func EncryptData(nodeUniqueId string, nodeSecret string, data []byte) (string, error)

EncryptData 加密

func EncryptMap added in v0.6.4

func EncryptMap(nodeUniqueId string, nodeSecret string, data maps.Map, timeout int32) (string, error)

EncryptMap 加密

Types

type AES256CFBMethod

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

func (*AES256CFBMethod) Decrypt

func (this *AES256CFBMethod) Decrypt(dst []byte) (src []byte, err error)

func (*AES256CFBMethod) Encrypt

func (this *AES256CFBMethod) Encrypt(src []byte) (dst []byte, err error)

func (*AES256CFBMethod) Init

func (this *AES256CFBMethod) Init(key, iv []byte) error

Jump to

Keyboard shortcuts

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