Archive

Archive for the ‘Uncategorized’ Category

A simplistic explanation of public-key cryptography

Wednesday, October 14th, 2009 lietk12 Leave a comment

This is a transcript of an irc conversation.

<MJ94> Hey, can someone explain public keys, encryption, decryption, public keys, and their use to me in idiots terms please? I don’t feel like Googling.
<MJ94> Please?
<lietk12> Erm.  I can give a very simplistic and watered down and probably inaccurate way of thinking about it.
<MJ94> Shoot.
<MJ94> :)
<lietk12> Okay.
<lietk12> Let’s say Alice has a letter she wants to send to Bob.
<lietk12> (It’s a love letter :P )
<MJ94> Always alice and bob :P
<MJ94> lietk12: Aww.
<lietk12> However, she doesn’t want Eve reading it and blabbing it to everyone.
<MJ94> Young love.
<MJ94> Damn eve.
<MJ94> Where’s adam?
<lietk12> (Also, she doesn’t want Eve to mess around with the letter to make it a hate letter :P )
<MJ94> How would Eve GET the letter?
<lietk12> Let’s say she works at the post office :P
<lietk12> (Because, y’know, a hacker could  tap into your internet connection)
<MJ94> I thought encryption was online, but OK.
<MJ94> Oh I see.
<lietk12> Yup.
<lietk12> So, the solution is to make it unreadable by anyone who doesn’t know how to make it readable.
<MJ94> I’m not encrypting my science notes ;P
<MJ94> I see.
<lietk12> You could think of it as putting a message inside a lunchbox, and locking the lunchbox.
<lietk12> (let’s assume that it’s a combination lock)
<MJ94> But then I’d be hungry.
<lietk12> Heh.
<MJ94> And very paranoid about lunch.
<MJ94> :P
<MJ94> Continue :P
<lietk12> Anyway, Alice only shares the combination with Bob.
<lietk12> So only Bob knows.
<MJ94> Never share passwords or combos :P
<MJ94> Cool.
<lietk12> However, how does Alice make sure that Eve isn’t eavesdropping on Alice and Bob when Alice tells Bob the combination?
<MJ94> Oh yes, how?
<lietk12> (Hint: Alice can’t)
<MJ94> Oh lietk12.
<MJ94> Lemme guess.
<MJ94> She can’t?
<lietk12> So, Alice decides to put 2 combination locks on the lunch box.
<lietk12> One is a lock which only she knows how to open.
<MJ94> Huh…
<lietk12> Err..
<MJ94> I see.
<lietk12> That’s a bad analogy.
<lietk12> Let me put it another way:
<MJ94> Err?
<lietk12> Alice puts on a combination lock which she can open using a key.
<MJ94> ok.
<lietk12> This is a special lock–to be able to close the lock, you have to know a combination.
<lietk12> However, that combination will not open the lock.
<lietk12> Thus, if Bob knows the combination, he can only close the lock (i.e. send messages to Alice)
<MJ94> I see.
<lietk12> Eve can also send messages to Alice, but she (like everyone else) cannot open any locks.
<lietk12> Thus, Eve cannot tamper with Bob’s message.
<MJ94> I see :)
<lietk12> So, Alice advertises her combination (e.g. on the signature of a forum account)
<lietk12> Thus, everyone can send messages to her, but only Alice can open the boxes with messages.
<lietk12> (Alice has an infinite number of boxes which people can put messages in)
<lietk12> The combination which everyone has access to is the public key.
<lietk12> Alice’s personal physical key (like what you use to open a door) is the private key.
<lietk12> (Alice shouldn’t share her private key, or else someone could read all messages sent to her!)
<MJ94> Fail :P
<lietk12> So, encryption is done in the following way:
<MJ94> Cool! How do I start?
<MJ94> lietk12: Yes?
<lietk12> 1. Find the combination to close the lock.
<lietk12> 2. Write a letter.
<lietk12> 3. Put the letter in the box, and close the lock with the combination.
<lietk12> To decrypt it:
<MJ94> I see.
<lietk12> 1. Find the box.
<lietk12> 2. Use the door-type key to open it.
<lietk12> In computing, typically keys are done with OpenGPG (I honestly have no idea how it works, and I’ve never needed to use one).
<lietk12> Certian places will use a ssh key thing (not sure how that works either, but the principle is the same)
<lietk12> *Certain
* Mike||gone is now known as Mike_lifeguard
* um|U (~wthww@cpe-98-157-158-57.ma.res.rr.com) has joined #clueirc
<lietk12> Oh, another wrinkle:
<lietk12> How does Alice figure out her combination?
<lietk12> She has a machine.  Alice puts her physical, door-type key into the machine, which spits out a unique combination based on it.
<lietk12> (Like, you can’t get that combination from any other type of key)
<lietk12> *from any other key
<lietk12> Let’s imagine a world where everyone has this machine, and it works the same way for everyone (it uses the same method to generate the key).
<MJ94> Yep.
<lietk12> Thus, only the person who has Alice’s key will generate a public key that matches hers.
<lietk12> What if all doors had a small version this machine?
<lietk12> If you insert your key, it’ll generate a public key.  Let’s say Alice makes her door-lock only accept her public key and Bob’s public key.
<lietk12> Thus, Bob’s and Alice’s key will work.
<lietk12> Eve’s won’t.  Eve can’t bypass the lock–the only way to enter a public key is to put in your physical, door-lock-type key.
<MJ94> I see.
<lietk12> This is kind of how password hashes and ssh public key authentication works.
<MJ94> Well thanks!
<lietk12> No problem.

Categories: Uncategorized

Hiatus

Tuesday, April 28th, 2009 lietk12 1 comment

I’ve been really busy, so to the 2 of you out there who read my blog regularly, I’ll be on hold until sometime in the summer.

Categories: Uncategorized Tags:

Mirrorboard

Sunday, April 5th, 2009 lietk12 Leave a comment

Or, how to type with just one hand (I am typing this post with just one hand).

Mirrorboard was an idea that Randall Munroe outlined on his blog.  Go read it.

After looking around on the web for a suitable way to have this on Windows, I stumbled across this topic on the AutoHotkey forums.

(AutoHotkey is a scripting system that allows for making keyboard shortcuts to do various things)

Basically, it was an implementation of the mirrorboard system on windows.

You can get it here (no installation of anything necessary–just run the code).

To temporarily turn it off (if you type very quickly and sometimes have a slight temporal overlap between the space bar and the other letters), press Ctrl+Space.

Categories: Uncategorized

Nigerian Scamming via Skype

Sunday, March 29th, 2009 lietk12 Leave a comment

I don’t know who took this screenshot, but it sure is hilarious.

Foiled.
Categories: Uncategorized

The MAFIAA, sans kneecap-breaking

Tuesday, March 24th, 2009 lietk12 Leave a comment
The children ultimately became recruits of the RIAA and dealt death unto all that spoke out against them.  Almost like those dogs in "Animal Farm".

The children ultimately became recruits of the RIAA and dealt death unto all that spoke out against the RIAA. Almost like those dogs from George Orwell's book "Animal Farm".

Categories: Uncategorized

Rainmeter

Friday, March 20th, 2009 lietk12 1 comment

Rainmeter (not Rainlendar) is a desktop widget system.

Why do I use it?  It’s very lightweight, and allows for HUD-like functionality–as if all data (e.g. time, date, weather, CPU usage, memory usage, swap usage, etc.) is part of the background.

Dandelions not included.

Dandelions not included.

This was made using some random (possibly Mac-originated) background, some icons, and Rainmeter.  I used the 10-foot HUD, Enigma, and HUD.Vision configs.

Categories: Uncategorized Tags:

The New iPod Shuffle

Tuesday, March 17th, 2009 lietk12 Leave a comment

The new iPod Shuffle is pretty cool–it’s extremely small, but it’s very attractive (almost delicious!) and definitely in line with Apple’s minimalism.

It has a new feature called “VoiceOver” in which the iPod Shuffle reads aloud the names of songs and playlists.

I wonder if this would be good for the blind…

It’s also very cheap ($79 for 4 GB!).  Technology progresses so quickly (I remember the good old days when $60 got you a 256 MB flash drive.  I now have a 16 GB flash drive for $20…)!

I wonder if Apple’s going anywhere with the new advertisement design:

For comparison, here’s the album cover for U2’s newest album, No Line on the Horizon:

Is it just me, or does Apple’s ad resemble the album cover?

Categories: Uncategorized Tags: , ,

Safari 4 Public Beta

Monday, March 9th, 2009 lietk12 Leave a comment
Safari 4 new tab button
Image by macewan via Flickr

Safari 4 Public Beta is out.

It is a significant improvement over Safari 3, especially in the user interface.

Safari 4 now resembles iTunes in its design elements, etc.  For example, it now has cover flow for your bookmarks–a somewhat useless feature, unless you like seeing your bookmarks (I don’t really care).

In other news, I think Apple is ripping off Chrome:

Google Chrome and Safari 4 beta tab comparison
Image by Lawrence R.Y. Li via Flickr
Categories: Uncategorized Tags: ,

It seemed like a good idea at the time…

Thursday, February 19th, 2009 lietk12 1 comment

This is what happens when I get deprived of my sleep…

Note to self: *NEVER* again shall I stay up on the computer until 5:00 AM, even if it is just to re-read xkcd.  I will become incoherent and brain-dead to the point of stupor.

Note to self: *NEVER* again shall I stay up on the computer until 5:00 AM, even if it is just to re-read xkcd. I will become incoherent and brain-dead to the point of stupor.

Categories: Uncategorized

On the Origin of Darwin

Thursday, February 12th, 2009 lietk12 Leave a comment

Today is the 200th birthday of Charles Darwin, originator of the theory of evolution!

Happy birthday, Charles Darwin!

Categories: Uncategorized Tags: ,