Public vs Private Key Demo

EDUCATIONAL DEMONSTRATION ONLY. This demo illustrates the fundamental concept of asymmetric cryptography: a public key that everyone can use to encrypt, and a private key that only you hold to decrypt. Uses small RSA numbers so you can follow the math.

Privacy: this tool processes your data entirely in your browser. Nothing you paste or type is sent to the server.

Message to encrypt with the public key.

Result

Enter your values and press Calculate — the result appears here.

Worked examples

Encrypt SECRET

  • text = SECRET

Result: Public key encrypts, private key decrypts.

Frequently asked questions

Can the private key encrypt too?

Yes - signing uses the private key to sign a hash, and verification uses the public key to verify it. But the primary use of private key is decryption of messages encrypted with the public key.

How do I share my public key?

You can share it freely - post it on your website, embed it in certificates, etc. Only the private key must be kept secret.

💬 Discuss on BestWordz Community

Join the conversation about Cybersecurity, public key, private key on the BestWordz Community forum.

Visit Forum →
Copied!