Wednesday, November 11, 2015

Happy Diwali!

Wish you all a happy Diwali!
Let a billion lights shine,
And light a billion others.

Let's work towards a brighter, happier, open and more inclusive world.

A special request for my friends in Delhi NCR. Please cut down on crackers this year. For the sake of our children and our environment.

The radio this morning announced that the particulate level in chanakyapuri, the greenest area in Delhi was 200+ against recommended max 15 by WHO. Other areas is over 600. Tomorrow morning this number will be 1000+!

These quantities can cause lung cancer besides exacerbating problems for those who have breathing issues.

Please be considerate. Happy Diwali once again.

Thursday, July 16, 2015

Introducing Keybase + cryptography primer

First, visit: 

Why is this significant?
It marries social identities with public key cryptography and makes it accessible for all. And they just raised a $10M round from Andreessen Horowitz ;)

What's the catch?
It stores your private keys on their server based on a pass-phrase.

----------------------------------------------------------
Primer stuff (really basic 'how does this work?' stuff):
Cryptography relies on mathematics to ensure that two entities can have a trusted communication, which is the critical bedrock of all things digital and requiring trust. 
  
What's all this talk about public and private keys?
Assume that both of us have two keys each: One called the private key and the other called the public key. Also only you can see and use your private key but your public key is visible to all.

Just like physical keys are used to lock down and restrict access to physical assets, these digital keys help lock down and provide access to assets that are digital. A text message I send to you could be that digital asset that I need to protect. Unlike the physical world where we touch/ see/ hear each other and can simply talk to each other, in the digital world, we may be continents apart and there are no cues that can really help trust anything and everything digital can be easily manipulated.

So, assume really I need to send you a super secret message (eg: 'OMG. Pluto's on Pluto!') that ONLY you can read, I will first get YOUR public key, then use it to encrypt MY message and send it to you. By now the message will look like garbage for everyone else (eg: "23nfn32323n32djksgdsgdad3").

However, YOU and only you can use your private key and decrypt the gibberish into the original message ('OMG. Pluto's on Pluto!'). So, presto! I was able to send you a message to you that only you could read!

Cool, but you still don't trust me, what else can we do?
Now, when you read the message, there are two problems: 
One: How can you be really sure that the message was not changed by someone in transit?
Two: How can you be really sure that it was I who sent it? 

Maths to the rescue again!
There is a cryptographic tool called hashing. Hash is a function that provides one way conversion of any text into a unique signature. For example, 'Hello' hashed may look like '2nwfd3232'. If I make ANY change to my message eg: change 'Hello' to 'HellO' the hash will also change. Unlike encryption, hashes are one way. That is, it is not computationally easy to get back to Hello from just its hash.

So assume that instead of a plain and simple Hello, the text was a legal agreement that I sent to you. So once you receive it, all you need to do is to again hash the legal agreement and check if the hash provided by me was exactly the same as the one that you derived yourself using the agreement text. If both the hashes match, it proves mathematically that no changes were made to the document after I had hashed it.

What about problem Two mentioned above?
Just a little more of the same mathematical tools above should help here. Remember the hash that I just created a short while ago? I will encrypt that hash with my private key and send this as my digital signature along with the encrypted message to you. So, for you to verify that it was indeed I who sent the message, you decrypt it with my public key and then do the hash comparison as explained in the previous paragraph. If the hashes don't match, it means either that the message was tampered OR that it was not really sent by me.

So, a lot of mathematics and two pair of keys is what it takes for us to have a trusted, non-repudiable digital communication with each other. However, what was lacking was a robust and a simple set of tools that could hide all this complexity and make this ubiquitous in the digital world. Keybase seems to be a step in that direction!



Tuesday, April 21, 2015

I wish 10. Cats at Indian Traffic Signals

I wish we have traffic signals where cut-out cats pop-up on the road. No more plain red lights. Let me explain.


To anyone who has travelled on Indian roads, this should be pretty obvious; to others, it might sound fatally amusing. One thing that vehicle drivers in India seem inherently incapable of doing is stopping before the white lines drawn at traffic signals (that is if they decide to stop in the first place).

Thankfully, there is ONE thing that can stop almost all of them: cats. A cat crossing ones path is considered inauspicious (to put it mildly) and Indians would do anything to avoid being crossed thus! A larger animal's cut-out; a cow's for instance, would have been eminently more visible, but that would not have served the purpose since the holy cows are considered very much a part of the road ecosystem and people are adept at swerving right past them.

Note: No animals were harmed or intended to be harmed for this post. The cut-outs could very well be made of indestructible silicon, latex and fibreglass sheets.

The 'I wish' series will be short posts highlighting simple, interesting, innovative and useful twists to daily random routines and objects. 

Tuesday, February 24, 2015

My song

Past slow streams, and paddy plains,
A gentle breeze, the drizzling rain,
A blue-bird tries catch-up in vain,
To a soulful beat, my rocking train

Back ten years, my numb mind panes,
A time that sure no more remains,
Had no money and had no pains,
Nor plans beyond the morrow made,

When music was the sole refrain,
And dreams my waiting soul had gained,
To love, I was not yet ordained,
Just longings that were best contained,

In the sleepy city, along the drain,
My good 'ol car, on a narrow lane,
Driving with the rolled down panes,
Humming a tune the radio made,

Next to me, the guitar he played,
My fingers drummed on the wheel splayed,
On a sharp high note, our voices strained,
In my head they'd still remained!

A thousand miles about to end,
Round the last corner, the rail-road bends,
Draws up to the station almost spent,
In my notebook, these words I pen:

If there'd be something that I could ask of life,
That'd be to make music when the sun shines,
'Cause when the night falls and darkness stays,
While I sleep, I'd hope my song still plays.

- A
V