PPolySim OS
Use case · powered by RSA Encryption

RSA Encryption for a Merkle tree

Simulate a Merkle tree live in your browser. This runs the real RSA Encryption solver — adjust the inputs, watch it respond instantly, and export the result. No install, no account.

RSA Public-Key EncryptionLive
message
42
↓ encrypt: 42^3 mod 391
ciphertext
189
↓ decrypt: 189^235 mod 391
recovered
42

Controls

Presets

Prime p
Prime q
Message (number < n)

RSA rests on a one-way street: multiplying two big primes is easy, but factoring the product back apart is practically impossible. The public key (n, e) encrypts by raising the message to the power e mod n; only the private key d — computable only from the secret primes — can undo it. Real keys use 600-digit primes; these tiny ones just show the machinery.

▶ Run in Python

Data Inspector

Modulus n = p·q391
φ(n)352
Public key e3
Private key d235

Governing equation

Reading this result: The public key (n=391, e=3) turns 42 into ciphertext 189; only the private key d=235, derived from the secret primes, brings it back to 42. With primes this small, n could be factored instantly — real RSA uses 600-digit primes.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

About this simulation

The full RSA Encryption tool models a Merkle tree with the same numerics engineers and scientists use — running entirely client-side. Change any parameter and the result updates in real time, so you can build intuition, check a design, or teach the concept without spreadsheets or installs.

More you can do with RSA Encryption

Other ways to simulate a Merkle tree

Frequently asked questions

How do I simulate a Merkle tree?
Open this page and use the live RSA Encryption tool below — set your inputs and the simulation runs instantly in your browser using real numerics. No install, no account needed.
Is it free?
Yes. The simulation runs free in your browser. A one-time unlock or a Pro plan adds advanced parameters, saved presets, data import, and clean exports.
Can I use my own numbers?
Absolutely — every input is adjustable, and with data import you can drive a Merkle tree from your own measurements.