Skip to content

Instantly share code, notes, and snippets.

@agniswarm
Created July 29, 2025 10:34
Show Gist options
  • Save agniswarm/6cb8075656d9ff6c39555c049a9ae5d1 to your computer and use it in GitHub Desktop.
Save agniswarm/6cb8075656d9ff6c39555c049a9ae5d1 to your computer and use it in GitHub Desktop.
Ed25519 vs RSA
Feature Ed25519 RSA
Algorithm Type Elliptic Curve Digital Signature Rivest–Shamir–Adleman (asymmetric encryption)
Key Length Fixed at 256 bits 1024 to 4096 bits (commonly 2048 or 4096)
Security Level Stronger per bit (equivalent to ~3072-bit RSA) Weaker per bit, needs longer keys
Speed Faster in both signing and verification Slower, especially with longer keys
Key Size (File) Very small (a few hundred bytes) Large, can be several kilobytes
Compatibility Supported in OpenSSH ≥ 6.5 (2014+) Universally supported
Quantum Resistance ❌ Not quantum-resistant ❌ Not quantum-resistant
Use in SSH ✔ Recommended for new keys ✔ Still widely used and supported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment