Elliptic curve cryptography is a type of public key cryptography that gets strong security from short keys.
This guide is for anyone who has seen names like Ed25519 or ECDSA in an SSH or certificate setting and wants to know what they mean. You do not need any maths. If you have made an SSH key recently, you have probably used it already.
In short
- Elliptic curve cryptography (ECC) is one family of public key methods. RSA is another.
- A 256-bit ECC key gives about the same strength as a 3,072-bit RSA key, according to NIST [1].
- Two names you will meet often are ECDSA and Ed25519, both used for digital signatures.
- Ed25519 is the default key type in current OpenSSH [3].
What you will learn
- Explain what ECC is, without the maths.
- Describe why ECC keys can be much shorter than RSA keys.
- Tell ECDSA and Ed25519 apart at a basic level.
- Recognise ECC in SSH keys and certificates you already use.
- Key pair
- a public key you can share and a private key you keep secret.
- Key size (bits)
- how long the key is. Longer is not always stronger across different methods.
- Signature
- proof, made with a private key, that data came from the key holder and is unchanged.
What is elliptic curve cryptography?
Think of two locks of the same strength. One is a big, heavy padlock. The other is a small lock with a cleverer design inside. Both keep the door shut, but one is far easier to carry.
ECC is the small, clever lock. Like RSA, it uses a key pair: a public key you share and a private key you keep secret. The difference is the maths underneath. ECC is built on points on a special kind of curve.
That maths lets ECC reach the same strength with much shorter keys. NIST's key management guide lists a 256-bit ECC key alongside a 3,072-bit RSA key, both at a 128-bit security strength [1].
Where the comparison stops working: a small padlock is weaker if someone uses bolt cutters. ECC keys are not weaker in that way. Short keys are strong because of the maths, not despite it.
Why does it matter?
Short keys mean smaller signatures and less data to send. That helps busy servers, phones and small devices. It also explains why you now see ECC names in many settings screens.
If you use SSH
What could happen: you keep old, long RSA keys you no longer track, on servers you have forgotten.
Check this: list your SSH keys, note their type and remove any you do not use.
Next: SSH Keys for Beginners
If you manage certificates or servers
What could happen: you pick a key type that a partner system cannot read, and a connection fails.
Check this: confirm which key types both ends support before you switch.
If you are learning security
What could happen: you assume a 256-bit key is weaker than a 2,048-bit one, and choose wrongly.
Check this: compare strength in "security bits", not raw key length.
What does it look like?
Here is a made-up public key line, the kind you might paste into a server. The key value is fake.
Example only. All values are made up.
ssh-ed25519 AAAAEXAMPLEFAKEKEY0000000000 example@laptop (1)(2)(3) Key type: Ed25519 (1) Public key: 32 bytes (2) Comment: example@laptop (3) Private key: stays on the laptop, never shared (4)
- The key type. "ssh-ed25519" tells the server this is an Ed25519 key.
- In a real file, this line would contain the real public key. Ed25519 public keys are 32 bytes [2], so the line is short.
- A label to help you remember which device the key belongs to.
- The private half never leaves your device. Only the public line is copied to servers.
Why this is risky: keys with vague comments pile up on servers, and nobody knows which are still in use.
The safer way: give each key a clear comment, keep a list of where it is installed and remove it when the device is retired.
How does it work?
- Agree on a curve. Both sides use the same published curve. A NIST publication lists the curves recommended for US government use, including two Edwards curves added for better speed and resistance to side-channel attacks [4].
- Make a key pair. Your device picks a secret number (the private key) and works out a matching point on the curve (the public key).
- Share the public key. You give it to a server or put it in a certificate.
- Sign with the private key. When you connect or sign something, your device makes a signature with the private key. Ed25519 signatures are 64 bytes [2].
- Others check with the public key. Anyone with the public key can confirm the signature is genuine. Working backwards from the public key to the private key is not practical.

ECDSA and Ed25519 both sign with elliptic curves, in slightly different ways. In OpenSSH, ECDSA keys come in three sizes: 256, 384 and 521 bits [3]. Ed25519 is part of the EdDSA family. It aims at around the 128-bit security level [2].
One helpful feature of Ed25519 is that it does not need a fresh random number for each signature. Its signatures are deterministic, so a weak random number source cannot leak the key that way [2].
A worked example
This story is made up to show the idea.
Bodhi Lomax is a junior engineer at Quayside Analytics, a small data firm. He needs to connect to the firm's build server over SSH, so his manager, Farah Tanaka, asks him to make a key.
Bodhi runs the key tool with no options. It makes an Ed25519 key, which is the default in current OpenSSH [3]. He is surprised how short the public key line is compared with an old RSA key on his last laptop.
He worries the shorter key is weaker. Farah shows him NIST's table: a 256-bit elliptic curve key sits at the same strength as a 3,072-bit RSA key [1].
Farah also spots that the build server still trusts four old RSA keys. One belongs to a contractor who left last year. Another is used by an automated backup job, a software identity that nobody had listed.
Together they remove the contractor's key straight away. They give the backup job its own new key with a clear comment. Both keys go on the team's key list, each with an owner.
Bodhi learned that key length alone does not show strength. The bigger risk on that server was not the type of key but the forgotten ones.
Myths and mistakes
| What people think | What is true |
|---|---|
| A 256-bit key must be weaker than a 2,048-bit key. | Different methods need different lengths. A 256-bit ECC key is rated stronger than a 2,048-bit RSA key.[1] |
| Bigger ECC curves are always needed. | A 256-bit curve already reaches 128-bit strength.[1] Larger curves exist for higher strength levels. |
| ECDSA and Ed25519 are the same thing. | Both use elliptic curves, but they are different signature schemes with different curves and rules.[2] |
| Switching to ECC fixes key sprawl. | A strong key type does not help if old keys are never removed. Keep a list and an owner for each key. |
| You need to understand the maths to use ECC safely. | Use well-known curves and default tools. Most mistakes come from key handling, not the maths. |
What can I do this week?
- Look at your own SSH public keys and note which type each one is.
- Remove any key from a server that you no longer use.
- Add a clear comment to each key so you know which device it belongs to.
- Ask which service accounts and automated jobs hold SSH keys on your key servers.
- Read SSH Keys for Beginners to look after your keys well.
Checklist
- I can explain ECC as public key cryptography with shorter keys.
- I know a 256-bit ECC key is comparable to a 3,072-bit RSA key.
- I can recognise Ed25519 and ECDSA in key and certificate settings.
- I compare security strength, not raw key length.
- I keep private keys on the device that made them.
- Every key I install has a clear comment and an owner.
- I remove keys that are no longer needed.
Common questions
Should I choose Ed25519 or ECDSA?
For a new SSH key, the OpenSSH default is Ed25519[3], which is a sensible start. Some older systems and some certificate setups expect ECDSA instead. Check what the other end supports before you choose.
Is ECC replacing RSA?
Many tools now prefer ECC by default, as OpenSSH does[3], but RSA is still widely used. You will meet both for years, so it helps to recognise each one and know how their key sizes compare.
Why are ECC keys so short?
ECC and RSA rest on different maths problems, so their key sizes cannot be compared bit for bit. What matters is the security strength each size gives. NIST's tables show the two side by side, so you can match them up[1].
Do machines and services use ECC keys too?
Yes. Servers, build jobs, backup scripts and AI agents often hold SSH keys or certificates of their own. These non-human identities need the same care as people's keys. Each key needs an owner, a record of where it is used and removal when no longer needed.
Is ECC safe from quantum computers?
This is a question about public key methods as a whole, not ECC alone. Our guide to quantum computing and security explains what quantum computers could mean for today's public key methods. It also covers how organisations are preparing.
Where next?
Ready for the detail? Read the practitioner guide: ECDSA vs EdDSA. It compares the two signature families, their failure modes and where each is accepted.
Also useful:
- Public Key Cryptography for Beginners
- SSH Keys for Beginners
- Digital Signatures for Beginners
- Key Exchange and Diffie-Hellman Guide
Related NHI Mgmt Group resources: Quantum Computing and Security for Beginners, Key Management for Beginners and Symmetric vs Asymmetric Encryption Guide.
Key terms
- Elliptic curve cryptography
- Public key cryptography built on the maths of points on a special curve, giving strong security with short keys.
- Public key cryptography
- Methods that use a linked pair of keys, one shared and one kept secret.
- Key pair
- A public key and a private key that are mathematically linked.
- ECDSA
- Elliptic Curve Digital Signature Algorithm, a widely used ECC signature method.
- Ed25519
- A fast EdDSA signature method on the edwards25519 curve, with 32-byte public keys and 64-byte signatures.
- RSA
- An older, widely used public key method that needs much longer keys than ECC for the same strength.
- Key length
- The size of a key in bits. It only compares strength fairly within the same method.
Sources and further reading
- NIST, "SP 800-57 Part 1 Rev. 5: Recommendation for Key Management: Part 1, General", May 2020, Table 2. https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57pt1r5.pdf (accessed 30 Nov 2026).
- S. Josefsson and I. Liusvaara, "RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)", IRTF, January 2017. https://www.rfc-editor.org/rfc/rfc8032.html (accessed 30 Nov 2026).
- OpenBSD manual pages, "ssh-keygen". https://man.openbsd.org/ssh-keygen (accessed 30 Nov 2026).
- NIST, "SP 800-186: Recommendations for Discrete Logarithm-based Cryptography: Elliptic Curve Domain Parameters", February 2023. https://csrc.nist.gov/pubs/sp/800/186/final (accessed 30 Nov 2026).