InstructionsTo put encrypted text in your own site:
Encrypt your text on the encryption page
- Type the password for the encrypted text in the Key box (be sure to remember the key!)
- Enter whatever you want to encrypt in the Plain Text box
- Click Encrypt
- Copy and paste the code in the HTML Code box into your website or blog
</head>tags in the html code of your webpage, add the following:
Encrypted text and decryption linkThis is the basic code to use in the body of the html code of your webpage to do the decryption:
<div id="uniqueID" title="encrypted text">
encrypted text is the encrypted text generated from the encryption/decryption page.
uniqueID is a unique name for the element, which is automatically generated by the encryption/decryption page in the sample code. This can be anything that you want, but do not put your key here because it is visible to everyone.
The two uniqueID's must be exactly the same, otherwise the code will not work.
See the examples page to see this in action and for different uses.
Advanced optionsThe decryptText function can accept an array of element id's and it will decrypt each of them. The encrypted text in each of these element id's can be encrypted with the same or different keys.
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:')
decryptText('uniqueID', null, true) or decryptText('uniqueID', 'Enter the key:', true)
BookmarkletsDrag these to the bookmark toolbar:
These bookmarklets provide a quick shortcut to the encryption/decryption page and automatically fills in the plain or encrypted text fields with the selected text on the page that you are currently on.