Tag Archives: security

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

Digest Authentication in Node.js with Http-Auth

Follow the instructions below to run a simple web server that requires a test user to log in using a password, which is then checked against a text file that contains encrypted password hashes for each user of the system. … Continue reading

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

Basic Authentication in Node.js with Http-Auth

Follow the instructions below to run a simple web server that requires a test user to log in using a password, which is then checked against a text file that contains encrypted passwords for each user of the system. This … Continue reading

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