Skip to content

passulo/ed25519-cli

Repository files navigation

ed25519 CLI

A simple & fast wrapper around the Java 15+ implementation of Ed25519.

Installation

$ brew install passulo/tap/ed25519-cli

or download the latest release.

Commands

Generate a keypair (matching public and private key)

Stores them in X509 format (i.e. base64 encoded DER with -----BEGIN…END-----)

$ ed25519 keypair

Inspect contents of a key

$ ed25519 inspect --private-key private.pem

Sign a text

Uses the private.pem key (or a private key at the specified path) to sign the UTF8 representation of the input and outputs a base64-encoded signature.

$ ed25519 sign --private-key="~/.keys/private.pem" --url-encoded "My Secret Message"

Dependencies