pkg

package
v0.0.0-...-0b87ad2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipher string, publicKey []byte, privateKey []byte) (string, error)

Decrypt decrypts a cipher with the public key and private key

func Encrypt

func Encrypt(payload string, publicKey []byte) (string, error)

Encrypt encrypts a payload with the public key

func SignEncode

func SignEncode(payload map[string]interface{}, privateKey []byte) (string, error)

SignEncode signs a msg then encode it

func VerifySignedData

func VerifySignedData(data string, pk []byte) ([]byte, error)

VerifySignedData verifies the signed data (value) of the set request body

Types

This section is empty.

Jump to

Keyboard shortcuts

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