Tuesday, December 18, 2007

Secure HTML

This week I had to create a password protected web page. I'd never done that before. I had some vague idea that I'd seen some javascript somewhere that would ask for a password, but I had never tried it. I hadn't really paid that much attention.

So, I started searching and found Secure HTML 1.5. I downloaded it, and tried it today. It works really well. It's a very small download and doesn't even require an install. Simply double-click on the downloaded file to open the program. It's really quick and easy. Here's how it works:
  1. Press the button Input File and select the desired HTML file.
  2. Correct the path and name of Output File, if needed. If you want to overwrite the input file, you can use the same name.
  3. Enter Password (not less than 4 characters).
  4. Check the box View Output File if you want to view the password protected HTML file in your default browser.
  5. Press the Encode button.
That's it. You now have an encoded file that can only be read by entering the password. If you don't enter the password or enter it incorrectly, you just get a blank window.

The program also works in reverse. If the file is already encoded, you can decode it by entering the correct password and clicking the Decode button. I haven't tried the decoding option because I've been editing one file and then encoding it to a new file.

If you don't want to download Secure HTML 1.5, there is also a free online service. Just copy the code of your page into the box, set your password, and hit Encode. Your browser opens in a new window, asks for your password, and shows you your page. Then you can save it to your computer.

Both the download and the online service look like very handy tools to have. You never know when you might want to create a secure password protected web page.