Plug GPG Verify

A plug that can be used to verify the ownership of public gpg keys.

TLDR;

It simply generates a random phrase and sends that to the user. The user then is required to sign the phrase and send it back which can then be verified.

Installation

Add plug_gpg_verify to your list of dependencies in mix.exs:

def deps do
[
{:plug_gpg_verify, "~> 0.1.0"}
]
end

This plug makes use of a gpg library that requires:

Usage

See hexdocs for complete documentation

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/plug_gpg_verify.