A simple & fast wrapper around the Java 15+ implementation of Ed25519.
$ brew install passulo/tap/ed25519-cli
or download the latest release.
Stores them in X509 format (i.e. base64 encoded DER with -----BEGIN…END-----
)
$ ed25519 keypair
$ ed25519 inspect --private-key private.pem
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"
- The underlying crypto is provided by JDK 17 (the
java.security
package of OpenJDK) - The CLI is built with Picocli and Picocli Code Generation
- The executable is built with GraalVM Native Image