.::^ Bem-Benk <-=-> The Magic of Man^::.: May 2007 » Lagi belajar buat Blog

Wednesday, May 16, 2007

OK

Type your summary here.

Type the rest of your post here.
redface

Labels: ,


Monday, May 14, 2007

Template Neo for everyone! by : Hackosphere

Hackosphere: Neo for everyone!

Type your summary here.

Type the rest of your post here.

Labels:


Sunday, May 06, 2007

3.3

Decrypt text

BSQUW-ILGKP-AWATN-YIBAV-KJNFC-SKIUL-GSCVM-UNICS-COSZG-EPAPS-BSTNO-ZJYAJ
k8RZtkzqKoi6Nr4hOj5ViBko3v8w71FEetohjMGoq3sInPLc\nbX0QYpcSdiiEobbiipO+FjUft9lXxBvH9o7wLRqmnDHcxMik\n5zKA+pye9G5lXRBPfwTcx63oJbYGDSuCtQ1nVAHh8qnUtRZf\nPLWenKxpEXrAsYXQF43tMHxtQKfKOPoCA5GYhCdbtR/kNYEs\nozEGaT89ECMEsI2Yd1j+ohqU0XXp+34TnsWFnH9eOKY1IcoW\n1gpmqrkgg+fBxjdcAoLaxg5XZJtDA5poHZ4QKP9mO6YwbfXZ\nA2QSGhswsyZNU+5wstLvTuU29rShECTYRb5vsv4QYuVIWWtS\nzC2r0NMpFkm00OWtIIVhTPLcgCflu3iHcCHMKI4DfPSb2ZxT\n4cS47w9a3LofXqbQG64NfOLZVYq4UrU+mJSXcQUB1rc=

QFxxHLr1wjGPmEj3S3v6Ugx+kN7Q/Az7


Type your summary here.

Type the rest of your post here.


Testing

Show encrypted text

Rr8AAt8JPOfFboxH4gggPvw9TanX/DkjFXA/P6oC/3d0/ZN1\nEl+IyB6WD4bxfGjgupYR/g/Rs7C8Yw1JJKkZSlICrOFgdA8/\nzUb88isN9WJQsy5ScRPKYatj8I4PD3kWcjI7luoKPxYmDzep\nsfwN0RLdkFWhgCGTDdGIcErL+nzR8IbhIru4HAwZYF0AoTks\nUNZtGnSux6hVLlj86yDDeQhi+cD1b2SFdg6j9ifWwMHXAW5l\niGEMMXKT5xY8AkozPEguUxrM5MOVjByGka4TP02CcC9ZipfZ\ndQaDWdusz7av+4JNA0rbM7u09vPlGHHJkEkb31v00Wa9BtVb\nfh5YR5tYwiP/VKj5bWYHMjN7ALxpPW47EqDeBHjlN42Hh7Ab\nHPGTiIQu1aW3ieh6UV0q+tuKghOIWDpWtiex1ZwvvCE=


Show encrypted text



Type your summary here.

Type the rest of your post here.


Enscript Post

Key (ordinarily kept secret, but shown here for the demos):

the-not-so-secret-key


Demo 1: Encrypted text shown

Decrypt text

bF6Y96p1Ledj+Dj8RuFX+95qSJoIiJTaVmfNG50p8oLI6gyA
kSRGDF8vtTi7ZHeniTVXuZfjqqIdjfKm5zBiiev+bDnTh7aV
QFxxHLr1wjGPmEj3S3v6Ugx+kN7Q/Az7


Demo 2: Encrypted text hidden

Show encrypted text


Javascript must be enabled for this encryption/decryption demo


I use my blog as literally an online journal to record my activities and thoughts so I can look back at them later. Writing things down can also be therapeutic. As a side benefit, it serves as a form of communication with my friends and randoms (it helped me get my apartment).

The problem is that I have to constantly censor myself as I do not want other people reading some of my more personal thoughts, especially ones about people that read my blog. I want my blog to be public, but I want to also add some private text.

My solution is to use cryptography. I will encrypt text I don't want people to read, this way the text is not available anywhere (not even on the server). The difficulty is in making it easy to do both encryption and decryption and doing so in a secure manner, i.e. do everything locally.

I turned to Javascript, as it is ubiquitous and it would allow me to do client side decryption. I found this site that uses Javascript to do 256-bit AES encryption and decryption. This encryption was more than enough for my purposes.

I then modded the code to do dynamic text with CSS. The result is the little demo at the top. When you enter the key into the prompt box, it decrypts the scrambled text on the fly without reloading the page! Better yet, it's all done locally, so not even the server ever sees the plain text.


Here's how you can use it for your site:
  1. Encrypt your text (be sure to remember the key!)

  2. Download the decryption Javascript code and include it in the header of your blog/site

  3. Use one of the two following code templates to put the encrypted text and decryption link on your page, depending on whether or not you want the encrypted text to show by default.

    • Show the encrypted text on the page along with a link to decrypt it

      <a href="javascript:Decrypt_text('unique_name');">Decrypt text</a>

      <div id="unique_name">Encrypted text from step 1</div>


    • Hide the encrypted text and only show the decryption link

      <a href="javascript:Decrypt_text('unique_name', 'Encrypted text from step 1');">Show encrypted text</a>

      <div id="unique_name"></div>


    Note 1: "unique_name" is the ID of the div (it appears in both lines of code) and ID's, have to be unique. In other words, if you use this code multiple times for multiple blocks of encrypted text, you have to change "unique_name" to "encrypted", "encrypted2", "encrypted_text_about_bob", etc. because the same name cannot be used twice.

The encrypted text is secure as long as you keep the key secret. The key is like a super-ultra secure password. You can use the same key over and over for multiple encryptions (so you don't have to remember/store multiple keys). If you want select people to see the encrypted text, you can give them the key. You may want to use a set of keys, one for super private, one for the gf, one for close friends, etc.

FAQ
  1. Is this secure?
    • Yes, the encryption used is very secure.

  2. Is there a back door? Can you read my encrypted text?
    • No. No one without the key can read the encrypted text and I don't know how to make a good back door.

  3. Is this going to install bad stuff on my computer or break stuff? Is this adware crap? Is this a virus?
    • No. I don't know how to do that.

  4. I lost the key, can you help me decrypt the text?
    • No. You lose the key and there's pretty much no way to decrypt the text, that is, until we get quantum computers.

  5. Do you have a quantum computer?
    • Yes, but I don't know how to use it.

Disclaimer: Not to be used if encryption is illegal in your country or used for illegal purposes.


Digg this article





Type your summary here.

Type the rest of your post here.


Chating With Yahoo Messengger Status : Bembenk

Photo

About me

  • I'm BambangOke
  • From Universitas Lampung, Lampung, Indonesia
My profile

Shout Box

Name :
Web URL :
Message :
:) :( :D :p :(( :)) :x

Pengunjung

In tHis Blog

Blogrol