JavaScript Encryption and Decryption 2.0
The new version of JavaScript Encryption and Decryption is out!
Try it:
Show encrypted text (the decryption key is: password)
The new encryption code is a lot faster than the old version and the webpage decryption code now uses a fancy dialog box to ask you for the key. The entire process has been greatly simplified and the encryption page will automatically generate code that you can copy and paste into your website.
Note: the new version is not backwards compatible with the old version
JavaScript Encryption and Decryption 2.0 Release Notes:
Nov. 27, 2008
- Faster
- Automatically generates HTML code for your website
- Fancy dialog box to ask you for the key
- Simpler to use and more examples
- Fixed bugs with Internet Explorer

January 19th, 2009 at 3:44 pm
Hi Vincent,
Excellent work with the encryption/decryption code.
My question is – can I read the key from the web.config file instead of the default pop up dialog? If so, please demonstrate how.
Many thanks.
January 19th, 2009 at 6:42 pm
As the code stands, you must enter the key either using the pop-up dialog or the JavaScript dialog prompt.
March 27th, 2009 at 1:07 pm
Is there anyway to hide/disable the tooltip/popup message box that currently displays the encrypted text string from the DIV section without forcing the viewer to disable in their browser? I’ve been fiddling around with it but seem to be getting nowhere with it.
I’ve managed to stop it from displaying when the mouse is over the actual link by overriding the TITLE from the DIV with another blank entry at the HREF (i.e. link). However, the tooltip still appears when the mouse becomes the caret when near the link text. I’m thinking a onMouseOver event but dunno what to call after that.
Thnks and rgrds
March 27th, 2009 at 1:40 pm
As of now, there is no way to stop the popup. It is browser dependent. I’ll look into ways that I can fix this.
March 29th, 2009 at 2:25 am
I’ve tried using this code on my blog but the the popup box prompting for the password cannot be visible. Please help!
April 13th, 2009 at 10:29 pm
Hi Vincent,
big thanks for ur work. I translated the instruction into Indonesian, and am doing the german-translation right now. it should be up by this time tomorrow..
here’s the indonesian-translation: http://raddie.blogspot.com/2009/04/encrypted-aka-password-protected-post.html
April 17th, 2009 at 3:27 am
And the german translation is up!
http://raddie.blogspot.com/2009/04/verschlusselter-aba-passwortgeschutzter.html
May 29th, 2009 at 1:05 pm
I would like to use yiour code to stuff encrypted data into a database as it is created and then pull it out to display from the database when needed. Is the source code available to encrypt and decrypt to include on my website?
May 29th, 2009 at 1:34 pm
Just take a look at the JavaScript files or use OpenSSL.
July 21st, 2009 at 1:35 pm
The password box won’t pop up when I try it either. I’m just a beginner with html code, but I think I’m following the instructions carefully. Does it not work with all blogger layouts?
July 21st, 2009 at 1:49 pm
Nevermind I figured it out. This is great! Thank you.
March 5th, 2010 at 4:44 am
hi Vincent:
Thanks for your work
everything was doing great before.
but these days, i tried using this code on my blog but the the popup box prompting for the password doesnt appear!
could you help me!
Thank you!
July 18th, 2010 at 9:31 am
This is COMPLETELY brilliant! I am SO impressed! I tried a while back to use this service but I was foxed by the HTML, but NOW I have been a bit braver and it works!
I’d actually like to format the text so that it doesn’t just run in a long line when revealed. I am trying to put my CV/resume online so it does need to look professional.
If formatting is too tricky, a pdf, or an image of a pdf (like the icon image you’ve used) would work. But I don’t know where to host the image. Shall I just import it to blogger as usual?
Thanks for all your hard work.
July 18th, 2010 at 10:49 am
When you encode the text, don’t just encode the plain text, encode the html code and then it should do what you want.