RSA, Ed25519, and PGP Key Generation
Cryptology Monster can generate public/private keypairs using RSA, Ed25519, and OpenPGP. Each key type has different supported purposes and export formats.
Understanding Keypairs
Public-key cryptography uses mathematically related keys.
Public key: Can be distributed to other people.
Private key: Must be protected from unauthorized access.
Depending on the algorithm, keys may be used for encryption, decryption, signing, or signature verification.
RSA Keypair Generator
The RSA tool generates RSA-OAEP keypairs using the Web Crypto API.
Supported Key Sizes
| Size | Availability |
|---|---|
| 2048 bits | Supported, default |
| 3072 bits | Supported |
| 4096 bits | Supported |
Usage
- Select RSA Keypair.
- Choose a key size.
- Click Generate RSA Keypair.
- Save the generated key files.
Output Files
rsa_private.pem
rsa_public.pemAlgorithm Configuration
| Parameter | Value |
|---|---|
| Algorithm | RSA-OAEP |
| Hash | SHA-256 |
| Public exponent | 65537 |
| Private key format | PKCS#8 PEM |
| Public key format | SPKI PEM |
Example PEM Structure
Public key:
-----BEGIN PUBLIC KEY-----
[Base64-encoded public key data]
-----END PUBLIC KEY-----Private key:
-----BEGIN PRIVATE KEY-----
[Base64-encoded private key data]
-----END PRIVATE KEY-----The generated RSA keys are configured for encryption and decryption.
They are not generated as RSA-PSS signing keys.
Security Considerations
Larger RSA keys generally require more computation.
The downloaded private key is not encrypted with a password by this tool.
Protect the file carefully.
Ed25519 Keypair Generator
Ed25519 is a digital signature algorithm.
Usage
- Select Ed25519 Keypair.
- Click Generate Ed25519 Keypair.
- Save both PEM files.
Output
ed25519_private.pem
ed25519_public.pemKey Capabilities
| Operation | Supported by Generated Key |
|---|---|
| Signing | Yes |
| Signature verification | Yes |
| RSA-style encryption | No |
| AES encryption | No |
Ed25519 uses a fixed-size key format rather than a selectable RSA-style modulus length.
Browser Compatibility
Native Ed25519 support depends on the browser's Web Crypto implementation.
Key generation can fail if the algorithm is unavailable.
Important
The private key is exported in unencrypted PKCS#8 PEM form.
Store it securely.
PGP Keypair Generator
The PGP tool generates OpenPGP-compatible keys using OpenPGP.js.
Usage
- Select PGP.
- Enter a name.
- Enter an email address.
- Optionally provide a comment.
- Choose whether to protect the private key with a passphrase.
- Select an algorithm.
- Optionally set an expiration period.
- Click Generate PGP Keypair.
Required Fields
| Field | Required |
|---|---|
| Name | Yes |
| Yes | |
| Comment | No |
| Passphrase | Required when protection is enabled |
| Algorithm | Selected from available options |
| Expiration | Optional |
Supported Algorithms
| Algorithm | Notes |
|---|---|
| Ed25519 | Default, recommended in interface |
| RSA 2048 | RSA OpenPGP key |
| RSA 3072 | RSA OpenPGP key |
| RSA 4096 | RSA OpenPGP key |
For the Ed25519 option, the implementation requests an Ed25519 primary key and Curve25519 encryption subkey.
Key Expiration
Enter a positive number of days to request key expiration.
Leave the field empty or use zero for no configured expiration.
Files Generated
pgp_public.asc
pgp_private.asc
pgp_revocation.ascThe revocation certificate is downloaded when returned by OpenPGP.js.
Fingerprint
The result window displays the generated public key's fingerprint.
A fingerprint is a compact identifier derived from the key.
It is useful when confirming that a public key belongs to the intended person.
Passphrase Protection
The PGP generator enables passphrase protection by default.
If protection is enabled, a passphrase is required.
The resulting private key is armored and protected using OpenPGP's key-protection format.
Revocation Certificate
A revocation certificate allows the key owner to publish revocation information if the corresponding key should no longer be trusted.
Keep the certificate separately and securely.
Choosing a Key Type
| Goal | Recommended Tool |
|---|---|
| Generate an RSA-OAEP encryption key | RSA Keypair |
| Generate a native Ed25519 signing key | Ed25519 Keypair |
| Create an OpenPGP identity | PGP Keypair |
| Encrypt and exchange PGP messages | PGP Keypair and PGP Operations |
Key Management Best Practices
- Never publish a private key.
- Back up private keys securely.
- Use a strong PGP private-key passphrase.
- Verify public-key fingerprints through trusted channels.
- Protect revocation certificates.
- Avoid confusing native PEM keys with OpenPGP armored keys.
Important: The native RSA and Ed25519 generators do not output interchangeable OpenPGP key files. Use PGP Keypair generation when you need OpenPGP-compatible keys.
Updated 9 days ago
