Cryptography - Generating ED25519 keys

ED25519 keys are from a branch of crpytopgraphy called “Elliptic Curve Cryptography” or ECC. It is based on a complicated branch of mathematics called “Group Theory”. The name is derived from the fact it is based on the Edwards Twisted Curve, hence “Ed”. Additionally, a core component of the math is based on the prime number 2255 - 19, hence 25519.

To use ssh-keygen:

ssh-keygen -o -a 100 -t ed25519

Or using openssl:

openssl genpkey --algorithm ed25519 --out private.pem --outform PEM
openssl pkey --in private.pem --pubout --out public.pem