Asymetrical RSA (Public Key) Encryption Demo

Here's everything you need to do secure, business browser-based transactions.

First you need to generate a key pair. (Actually for real busines event processing the key parts should already be asigned to business subject according to business logic), ) This is the slowest part. For demonstration of concept you can start with several bytes of key lenght. Pick how large a key you want. Larger keys are more secure, but take longer to generate, and somewhat longer to use (especially decrypting the web browser entries). 512 bit key modulos (32 byte keys, ie p and q are 256 bits each) are still considered somewhat secure. My browser took about 3 minutes to generate a key of this size on my old p2-450. Try a smaller one first, like 8 bytes and square that time twice to see how long it might take for you.

Note that your browser response may be slow and you should NOT abort the script while it is taking a time to generate the keys.

Random seed:
Here should come YOUR random seed in Hexadecimal format (leave space between Hex digits), or
Random.org will provide you with a random seed by clicking here. Ctrl-a and Ctrl-c to copy the text, then paste it above.

Click here to confirm acceptance of updated seed value and select key bytes:

These components are used to build your key values.
Prime factor p:
Prime factor q:
Public Modulo (p*q):
Private exponent (d):
Public exponent (e):
  
text:
     uses PUBLIC key (p*q and e).   uses PRIVATE key (p,q and d). 
Decrypting takes seconds    This took seconds

2007 InstantGlobe.com, adapted from John Hanna's JS implementation and distributed under the Gnu Public License.