cipher

package
v1.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAesJson

func DecodeAesJson(cipherText string, priv string, dest interface{}) error

func DecryptAes

func DecryptAes(cipherText []byte, key []byte) ([]byte, error)

func EncryptAes

func EncryptAes(plainText []byte, key []byte) ([]byte, error)

func EncryptAesJson

func EncryptAesJson(data interface{}, priv string) (string, error)

func GenerateKeyPairBase64

func GenerateKeyPairBase64(bits int) (pubBase64 string, privBase64 string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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