Vincent Cheung

Vincent Cheung's Blog

« Newer Post Home Older Post »

Friday, November 28, 2008

Encrypted Blog Posts Ver. 2

Over 2 years ago, I developed an encryption system that you could use to encrypt blog posts.

Since then, I have written several encrypted blog posts that were about particularly personal things and I didn't want the general public or certain people reading them. You can ask me for one of the keys if you want, but I can't guarantee that you'll get it :p

I just released a new version of my JavaScript Encryption and Decryption system.

Try it:
Show encrypted text (the decryption key is: password)

The new encryption code is a lot faster than the old version, the webpage decryption code now uses a fancy dialog box to ask you for the key, and I fixed some bugs. The entire process has been greatly simplified and the encryption page now automatically generates code that you can copy and paste into your website.

I'm starting to actually make use of my personal website,, which is where I'm hosting my random side projects. I'm just finishing up the new design on that site in preparation for an upcoming announcement.


Anonymous said...


I have a question, though. Apparently, to do line breaks we now have to write <br /> instead of pressing enter - is there a reason behind this change?

Vince said...

Yes, the old version converted line breaks to
to make the interface similar to Blogger, since Blogger converts line breaks to
, but with regular websites, this doesn't happen, so I decided to just not do any modifications to the text.

The new code decrypts to exactly what was encrypted and the web browser displays it accordingly. Web browsers don't insert
's in replace of line breaks in the HTML, so now you have to enter them in yourself. Basically you have to write the exact HTML code that you want displayed.

I figured that this made things more clear as to what you were going to get when you did the encryption/decryption and it also makes it compatible with OpenSSL.

Anonymous said...

Oh I see. Thank you~

xinyig said...

hi, i've no idea why after i paste the link in. and post it. it shows error on page. and the box did not pop out and prompt me for pw.

aiting said...

hi there, thank you so much for this code! been needing one for a long time :)

Unknown said...

Just wana say big thank you for the encryption script!

Great job!

Brenda Clews said...

Because publishers and literary journals consider posting a poem in a blog to be "published" material, and their policies are to submit "unpublished" poems, this encryption is beautiful. Now I can post for certain readers who have the key, for comment or feedback, which adhering to the "rules" of general publishing. Thank you so very much, Vincent, for sharing this elegant code.

Whatthehellboy said...

Amazing web tool! Thank you very very much, visit my blog: I used you web tool as a tutorial!

Post a Comment