$ ecdhes-keygen --base64 TDZkh2OblpB5f68XFryY7GFpR1YDyF9SFLBpdCxrrFE= CBP5t6A9pNczbr5NayeR4qURo12IUtXHy9CwNy/oFkQ=
This tool generates a new random Curve25519 keypair and outputs it in the designated format (the first being the public and the second being the private key). It takes one named option, format that can have the following values.
format
hex
The new keys will be encoded to hexadecimals, this is the defualt.
base64
The new keys will be encoded to base64.
uuencode
The new keys will be encoded with uuencode.
To install Crypt::ECDH_ES, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::ECDH_ES
CPAN shell
perl -MCPAN -e shell install Crypt::ECDH_ES
For more information on module installation, please visit the detailed CPAN module installation guide.