Header Ads Widget

Responsive Advertisement

what is Encryption and Decryption with example

 

 

 This article I will show you ,the basic of Encryption. 
 

first one thing what is encryption..? And why its needed..?

Encryption

It is simply Converting the text into the unreadable form . cryptographically converting a plaintext (our message ) into cipher text (unreadable form of our message)  .okay why we need it...? Yeah..! Its more wanted for the reason ,whatever we send into the web it must be encrypted before send ,we didn't encrypted , whatever we send anyone can see it ..! This is protecting our privacy while sending the data from sender to receiver .

Decryption

Decryption mean reverse the encryption process ..! Cipher text into plaintext.
Well next I want to show you basic encryption techniques.

Caesar cipher

Caesar cipher is very basic encryption technique , its also called as shift cipher .
Example
Plaintext = ("hi everyone")
Key = 5
Cipher text=("mn jajwdtsj")

My plain text is shifted right side to the alphabet
H →M
I → N
shifted 5 times, the same procedure is follow to all letter in plain text .
So the caesar cipher is called as shift chipher . its easily cracked from anyone .
Using this website to encrypt the plain text into cipher text


Okay we encrypt our plaintext how to we decrypt it ..? Yea its a reverse process of encryption .

Example

Cipher text=("mn jajwdtsj")
Key = 5
 M is shifted left side 5(key) times and get our plain text
 M --> H
 N --> I
 the same procedure is follow to all letter in cipher text.  I don't know what is the key ...? But I am using bruteforce to get same plain text .
The same website to use and get the plaintext .

 XOR cipher

XOR cipher using a XOR logical Operations to encrypt a data . okay its very easy

XOR Operation

 

 

Operation 


Plain text= ("Its easy ")

our message is converted into ASCII .
I -->73(ASCII value of I )
t -->116 (ASCII value of t )
We use a online convert to convert text to ASCII number , yea we got ASCII number next we converted into ASCII to Binary
Our ASCII number of message is

73,116,115,32,101,97,115,121

Covert into binary

00110111 00110011 00101100 00110001 00110001 00110110 00101100 00110001 00110001 00110101 00101100 00110011 00110010 00101100 00110001 00110000 00110001 00101100 00111001 00110111 00101100 00110001 00110001 00110101 00101100 00110001 00110010 00110001

Binary value of our ASCII values , Next 

we perform our Encryption yea..! We 

need a key 


Key format is our option its

My key is

111110

my encrypted message is

online XOR Encrypt here

cipher text


110011001711101100161101011117111011101611001010171110100116110101111711101110161100101017111010101611010111171110110016110010011711110011161100101017111011111611001010171111001116110000101711101000161101011117111011101611001010171110101016110101111711101110161100100117111011106159


Decryption we using reverse procedure of encryption

then using same website to get the using our key to get plaintext (binary format) , then convert Binary → ASCII → Text


Plain text (binary)

00110111 00110011 00101100 00110001 00110001 00110110 00101100 00110001 00110001 00110101 00101100 00110011 00110010 00101100 00110001 00110000 00110001 00101100 00111001 00110111 00101100 00110001 00110001 00110101 00101100 00110001 00110010 00110001

ASCII to TEXT

 

finally we got our message..!

All above method’s are easily cracked and its all are basic..!

The next article I will show you

Symmetric and Asymmetric Encryption and Decryption



Post a Comment

0 Comments