migp-go

module
v0.0.0-...-c364ba8 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: BSD-3-Clause

README

MIGP library

This contains a library for the MIGP (Might I Get Pwned) protocol. MIGP can be used to build privacy-preserving compromised credential checking services. Read the paper or the blog post for more details.

Quick start

Build
mkdir -p bin && go build -o bin/ ./cmd/...
Test
go test ./...
Generate server configuration and start MIGP server

Start a server that processes and stores breach entries from the input file.

cat testdata/test_breach.txt | bin/server &
Query MIGP server

Read entries in from the input file and query a MIGP server. By default, the target is set to a locally-running MIGP server, but the target flag can be used to target production MIGP servers such as https://migp.cloudflare.com.

cat testdata/test_queries.txt | bin/client [--target <target-server>]

Advanced usage

Run the client and server commands with --help for more options, including custom configuration support.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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