encrypt

package
v0.0.0-...-33ac5cc Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package encrypt includes middleware for decrypting request body if privateKey is set with parameters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptingMiddleware

func DecryptingMiddleware(privateKey string) func(h http.Handler) http.Handler

DecryptingMiddleware server middleware for decrypting messages from agent

func EncryptBody

func EncryptBody(body []byte, publicKey string) (encryptedBody []byte, 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