microencrypt

package module
v0.0.0-...-6e00cca Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: MIT Imports: 5 Imported by: 0

README

Microencrypt

What:

An http "microservice" that will asymmetrically encrypt whatever you hand it using Kevin Burke's bcrypt wrapper

Why:

I have written this code way too many times for scrapers. This endpoint is super useful when you need to encrypt user data (username/password) for scrapers, but you don't want to store it server side. That way the server can encrypt it for the client, and on each request you can send the encrypted data to the server which can then use it to get the data from the site that you are scraping

Contribution:

Please submit a pull request if you notice any possible issues with this repo and write a test to accompany the issue so that it is easily reproducible, and to ensure that the service is always working.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicroEncrypt

type MicroEncrypt struct {
	Key string
}

func NewMicroEncrypt

func NewMicroEncrypt(key string) *MicroEncrypt

func (*MicroEncrypt) ServeHTTP

func (asymmetric *MicroEncrypt) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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