Monday 30 June 2014

Tech Talk.....Cryptography or Encryption [Introduction]

Recently, I was working on securing the communication between different components of my product using cryptography or encryption (as it was called in the old world), I explored and learnt various concepts related to cryptography which proved to be very helpful. However, they were scattered around a lot and I had to filter out lots of stuff from here and there. I would like to summarize the learning that I gathered, over a series of small posts here, that would help someone like me in the future save time and effort and keep the learning crisp and fast.

Cryptography is a way to secure communication between two parties from any third party. In the world of computers, there are two different kind of cryptography techniques that are mostly popular : Public key cryptography (also known as Asymmetric cryptography) and Symmetric cryptography.

Public key cryptography:
This cryptography or encryption technique uses a pair of keys for encryption - decryption, one being a private key and another being a public key.Private key is used for decryption of data and public key is used for encryption of data. This mode of encryption is famous in the client - server world where the server generates a pair of keys - a public key and a private key. The private key is retained with the server , while the public key is made available to any client that wants to communicate to the server. The client encrypts its data with the public key before sending it over to the server, when the server gets the data from client, it uses the private key to decrypt the data. If any third party gets hold of the encrypted data, it can't decrypt the data because it won't have the private key with it.

In the next post, I will show how to generate a public-private key pair, how to store it and how to use it.(In java)


Friday 27 June 2014

Innocence

There are certain incidents of purity, innocence and selflessness that leave their imprints on our heart forever. Here I am narrating one such incidence that had touched me deep down and made its imprint on my heart forever.
I had these little cousins - an elder sister and a younger btrother - just an years difference between the two.  I had a piece of sweet with me which I had to offer them but unfortunately when I broke it the two pieces came out to be unequal. The two of them came rushing to me for sweet and I couldn't think of any fairer way to distribute the pieces than to spread my palm in front of them and let them make the decision of who wanted which piece. The sister reached out in a swift movement to grab the larger piece. The brother was just watching, the expression on his face clearly showing his disappointment of loosing the chance of grabbing the larger piece. When the sister was about to take the larger piece, she halted for a moment, saw her brother's face and then to my surprise she silently went ahead and grabbed the smaller piece, her eyes fixed on the disappointed face of her brother! I was so touched by the purity and selflessness of her gesture.