Ed25519 Sign & Verify Online | EdDSA Signature Browser
Digital Signatures How It Works
What Is Ed25519 (EdDSA)?
Ed25519 is a modern digital signature scheme based on the EdDSA (Edwards-curve Digital Signature Algorithm) using Curve25519. It produces fixed-size 64-byte signatures with 128-bit security, is deterministic (no random number generator needed during signing), and is resistant to side-channel attacks. Ed25519 is the default signature algorithm for SSH (ssh-ed25519), TLS 1.3, Signal Protocol, and many modern cryptographic systems.
This tool signs messages and verifies Ed25519 signatures entirely in your browser using the audited @noble/curves library. The Ed25519ph variant pre-hashes the message with SHA-512 first, making it ideal for large files and streaming data. Both variants produce 64-byte deterministic signatures.
When to Use Ed25519
- SSH authentication — Ed25519 is the recommended SSH key type (ssh-ed25519)
- TLS 1.3 — Ed25519 is one of the default signature algorithms
- Secure messaging — Signal Protocol uses Ed25519 for message authentication
- Blockchain / cryptocurrency — Ed25519 is used by Solana, Cardano, and others
- Code signing — Fast, compact signatures for software packages
- When NOT to use — For legacy system compatibility, RSA or ECDSA may be required
Variant Comparison
| Variant | Message Handling | Signature Size | Best for |
|---|---|---|---|
| Ed25519 | Direct signing | 64 bytes | General-purpose, SSH, TLS |
| Ed25519ph | Pre-hashed with SHA-512 | 64 bytes | Large files, streaming data |
Standards Compliance
- RFC 8032 — Edwards-Curve Digital Signature Algorithm (EdDSA)
- RFC 8446 (TLS 1.3) — Ed25519 as default signature algorithm
- RFC 8709 — Use of Curve25519 Keys in SSH
- NIST FIPS 186-5 — Ed25519 approved for federal use
- @noble/curves — Audited JavaScript implementation
Last updated:
Code Examples
Sign and verify with Ed25519 in multiple languages:
JavaScript — @noble/curves (Browser)
import { ed25519 } from '@noble/curves/ed25519';
// Generate key pair
const privateKey = ed25519.utils.randomPrivateKey();
const publicKey = ed25519.getPublicKey(privateKey);
// Sign
const message = new TextEncoder().encode('message to sign');
const signature = ed25519.sign(message, privateKey);
// Verify
const isValid = ed25519.verify(signature, message, publicKey);
console.log('Signature valid:', isValid); Python — cryptography library
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
private_key = Ed25519PrivateKey.generate()
public_key = private_key.public_key()
# Sign
message = b"message to sign"
signature = private_key.sign(message)
# Verify
public_key.verify(signature, message)
print("Signature valid") Go — crypto/ed25519
import (
"crypto/ed25519"
"crypto/rand"
)
publicKey, privateKey, _ := ed25519.GenerateKey(rand.Reader)
// Sign
message := []byte("message to sign")
signature := ed25519.Sign(privateKey, message)
// Verify
valid := ed25519.Verify(publicKey, message, signature) Rust — ed25519-dalek
use ed25519_dalek::{SigningKey, VerifyingKey, Signer, Verifier};
use rand::rngs::OsRng;
let signing_key = SigningKey::generate(&mut OsRng);
let verifying_key = VerifyingKey::from(&signing_key);
// Sign
let message = b"message to sign";
let signature = signing_key.sign(message);
// Verify
assert!(verifying_key.verify(message, &signature).is_ok()); Node.js — crypto module
const { generateKeyPairSync, sign, verify } = require('crypto');
const { publicKey, privateKey } = generateKeyPairSync('ed25519');
// Sign
const message = Buffer.from('message to sign');
const signature = sign(null, message, privateKey);
// Verify
const isValid = verify(null, message, publicKey, signature);
console.log('Signature valid:', isValid); Common Pitfalls
Security Notes
Disclaimer
This tool is provided for educational and development purposes. All signing and verification happens entirely in your browser using the audited @noble/curves library. For high-value production signing, use hardware security modules (HSMs) or dedicated signing services.
Further Reading
- RFC 8032 — Edwards-Curve Digital Signature Algorithm (EdDSA)
- Ed25519: high-speed high-security signatures
- RFC 8709 — Use of Curve25519 Keys in SSH
- NIST FIPS 186-5 — Digital Signature Standard
Related Concepts
- ECC Key Generator — Generate Ed25519 and other ECC key pairs
- Digital Signature Verify — RSA and ECDSA signatures
- ML-DSA Sign/Verify — Post-quantum signatures (FIPS 204)
Related Tools
Need ECDSA or RSA signatures? Try the Digital Signature & Verify tool. For post-quantum signatures, see the ML-DSA Sign/Verify tool. You can also generate standalone Ed25519 key pairs with the ECC Key Generator.
Frequently Asked Questions
What key formats does this tool accept?
Private keys: PKCS#8 PEM (-----BEGIN PRIVATE KEY-----) or raw 32-byte hex. Public keys: SPKI PEM (-----BEGIN PUBLIC KEY-----) or raw 32-byte hex. Click the Generate button to create a fresh key pair in PEM format, which you can also use in OpenSSL, SSH, and other tools.
Is it safe to sign data here?
All signing and verification happens entirely in your browser using the audited @noble/curves library. No private key or data ever leaves the page. For development and testing this is perfectly adequate. For high-value production signing — code-signing certificates, financial transactions — use a hardware security module (HSM).
What should I do if verification fails?
Check these in order: (1) Are you using the correct public key that matches the private key used for signing? (2) Is the data byte-for-byte identical — even a single extra newline will break verification? (3) Is the signature in the right format (Hex vs Base64)? (4) Did you select the same data format (Text / Hex / Base64) that was used when signing? Ed25519 signs the exact bytes, so any encoding mismatch will cause failure.
What is the difference between Ed25519 and Ed25519ph?
Ed25519 is the standard pure EdDSA mode — it hashes the message with SHA-512 internally as part of signing. Ed25519ph pre-hashes the message with SHA-512 first, then signs the 64-byte digest — ideal for very large files or streaming data where you hash in chunks. This tool supports both; select the variant using the toggle above the input fields.
How do I derive the public key from my private key?
Paste your Ed25519 private key (PEM or hex) into the Private Key field, then click the "Derive Pub" button next to it. The tool computes the corresponding 32-byte public key using the Curve25519 base point multiplication and fills it into the Public Key field in SPKI PEM format. You can then copy it for sharing or verification — no need to keep the original key pair together.
Privacy: This tool runs entirely in your browser — nothing is uploaded or stored. · Disclaimer: For educational purposes only. Not professional security advice.
More in Signatures
Digital Signature & Verify
Create and verify digital signatures online with RSA (PSS, PKCS#1 v1.5) or ECDSA (P-256, P-384, P-521, secp256k1). Text/hex/Base64 input.
JWT Signer & Verifier
Sign, parse, and verify JWT (JSON Web Token) online. HS/RS/PS/ES algorithms, decode header and payload, claims breakdown, expiration checks.
ML-DSA Sign / Verify
Generate ML-DSA (FIPS 204) post-quantum key pairs, sign messages, and verify signatures online. ML-DSA-44/65/87, hex and Base64 output.