I am trying to password protect some text in a Blogger blogpost and I found a website that explains how to do so.
I had to add this line of code between my
tags in the html template:
And once that's done I just need to:
- copy the text from the blogpost I want to password protect into their box here → http://www.vincentcheung.ca/jsencryption/
- Type my password in their Key box
- Copy the HTML code provided in their last box.
This is the basic code used in the body of the html code of my blogpost to do the decryption:
<div id="uniqueID" title="encrypted text">
And I can easily change the text "Show encrypted text" by anything else I like.
However, once people click in the 'Show encrypted text' link, a box pops out, with some text:
In the instructions, it says:
You can change the message in the dialog box that asks for the key by providing the desired message as a second parameter, eg. decryptText('uniqueID', 'Enter the password:')
But I don't really know where to add it. I have tried, but nothing seems to work.
Here is the website: http://www.vincentcheung.ca/jsencryption/instructions.html