Monthly Archives: March 2017

Demonstrating the RSA Algorithm in JavaScript

The JavaScript code below picks two random two-digit primes, uses them to generate a RSA keypair, then uses that keypair to encrypt and decrypt a simple message. It uses the LargeInteger class introduced in a previous post to handle the … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

A Sliding Tile Puzzle in JavaScript

The code below implements a simple sliding tile puzzle in JavaScript. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Use the arrow keys to move the … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

A Multiple Text Document Editor in JavaScript

Below is a multiple text document editor implemented in JavaScript. To see the code in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Or, for an online version, visit https://thiscouldbebetter.neocities.org/multipletextdocumenteditor.html. … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment