Skip to main content

Applications of Cryptography

Cryptography applications

Cryptography can be applied in data communications for safety and security purposes. This can be seen in form of IPSec, SSL and PGP.

IPSec (Internet Protocol Security)

This is a set of protocols designed to protect the integrity and authenticity of data while moving across the network. This set of rules (IPSec) work at the layer 3 of the OSI model. Wait!!! what is layer 3..... brain cracking.... searching my database..... THE NETWORK LAYER! Yeaaaahhhh! If we can recall, network layer deals with IP addressing(logical address). So this protocol is implemented on the IP addressing system? Yeah! This security application uses some sets of rules which govern how data is been successfully flowing over a network.

The earliest cryptographic applications are implemented on the layer 7 Application layer. IPSec came into the world with its layer 3 implementation, unlike it predecessors where the policy is been implemented at the Application layer, this security policy is done right before the data leaves or enter into the network. One of its feature that makes it successful is its ability to work without any major changes to the implemented computer system. This security policy is found very helpful in remote user access through dial-up connections, private networks even VPN virtual private network, wait! Whats that? I will surely dedicate an article on VPN just stay in touch!

IPSec Protection Mechanisms

This security policy uses two types of mechanism to protect data.
Authentication Header
Encapsulation security payload

Authentication header (AH): This provides an integrity and authentication of datagrams between two systems or devices.

This technology uses hashing. As already discussed hashing is a way of encryption which helps the receiver to authenticate the integrity of the data received. Any alteration of data after hashing is applied will surely be identified.

Authentication header is applied to the entire datagram except the addressing header which has to change during transit. When data is been sent over a network, it follows different hops (router interface that forward data to reach its destination) thus making the next hop address changes over transit. TTL Time to leave (this is a mechanism that tells the router its time to release packet or packet stayed too long in the network it needs to send it to the right direction to reach its destination or discarded, if it reaches zero before reaching its destination the data is discarded) changes over time so this portion too need not to be hashed.

How do AH works?

>>1>> The IP header  and the payload is hashed
wait!!! what is IP header? This is a prefix in an IP packet which describes information like, IP version, source and destination IP address, TTL etc.

>>2>> The hash is used to built a new AH header, which is attached to the original packet.

>>3>> The packet is transmitted to the IPSec  peer router.

>>4>> The peer router will the has the IP header and the payload, extracts the transmitted hash from the AH header and compares the two hashes. As you already know they must exactly match, even if one or atom (laughs) bit of data is altered the hash will never be the same. Thus making the data not original.

Encapsulation security payload (ESP): This provide a way to authenticate data as well as encrypt data. It provides confidentiality by encrypting the IP packet layer, data origin authentication, integrity, optional antire-replay service (this is a sub-protocol of IPSec, its main aim is to guard the integrity of data, by protecting datagram from been altered by an intruder) and limited traffic flow confidentiality by limiting traffic flow analysis. ESP supports the symmetric encryption algorithms which is already discussed.

The information that contains each of the mentioned IPSec mechanisms can be found in the IP header which follows the IP packet.

References: ciscopress Wikipedia Sybex CEH

To be continued

Comments

Popular posts from this blog

Microsoft Office for Tablet now on Google Play store

Back in November, Microsoft opened up early previews builds for its new mobile Office applications for Android tablets to those willing to sign up and wait for an invitation. After taking on feedback over the past couple of months, Microsoft has announced that it is expanding its preview scheme by releasing its Office applications to everyone directly through the Google Play Store. The new Office software for mobile unifies Android, IOS, and Windows platforms. Previously each platform had to make do with its own apps, meaning that feature sets differed depending on your operating system and updates were often slow and intermittent. By unifying the Office platform, Microsoft hopes to bring updates and new features to users in a timelier manner. There are still a couple of conditions attached to the preview builds though. Firstly, Office is still limited to ARM-based Android tablets with a screen size between 7 and 10.1 inches. Your tablet will also need to be running Ki...

Ethical Hacking Simplified. Applications of Cryptography

Pretty good Privacy PGP This type of cryptographic Application uses Public key encryption system and  is one of the most popular means of encryption in the world. It is used in securing data, data storage, email, Instant Messaging (instant messaging are messaging system that happens in real time, just like whatsApp, Facebook messenger etc.) and other forms of communication. The early version of this cryptographic application was written by Philip Zimmerman and has it public appearance in 1991. it is part of an open-source project with many version where user can choose the best that suit them. This cryptographic application comes with privacy and security measure that are found in many online systems. The data will travel in an encrypted form (chipertext), upon arriving at the receiving end, the receiving will use PGP to decrypt the data back to plaintext. PGP uses the Public/Private key encryption. Where the sender uses his public key to encrypt data, and the receiver ...

Tips for strong password

As we have already discussed that passwords are strong and at the same time weak! If user create password from his name, date of birth or any other combination that is related to him, cracking down his account doesn't need much technical know how. Meaning attacker who know you, can be lucky enough to access your sensitive information by only entering certain key combinations. Creating strong and almost non hackable wait!!! is there any non hackable password! I was once told that any system can be hacked! It only took time, skills and resources! You are absolutely right! But at-least one has to really suffer before getting your data! Arm robbers do rob banks! Do you think a local or common thief can rob bank? The ans is absolute NO! Strong passwords doesn't happen by chance! Below are the steps to create a very strong passwords! Passwords should be at-least 8 characters Its already becoming standard on the internet. Many websites doesn't allow less than 6 charact...