Encryption & Decryption Explained.


Today I am going to discuss about the most happening topic of Internet i.e. Encryption and Decryption.


What is Encryption?


A data converted into unreadable format is called encrypted data and the process is called is ENCRYPTION.


What is Decryption?


Converting an encrypted data to unencrypted format i.e. readable format is called DECRYPTION.


How does it work?


Every encryption has it own algorithm. Unless and until we know the algorithm we can’t decrypt it and thus we can call it KEY.

I will show you a simple encryption program to explain the process.

As we know every character set has its own ASCII value which is a numeric number.


Let see a example.



Character

ASCII

A

65

a

97

B

66

b

98

C

97

c

99











and goes on………………………


Now let us take a string -----“ IT IS FUN TO LEARN COMPUTER ” , I am going to encrypt it with a simple C program. The algorithm I am using in this is, I find out the ASCII codes of the string which are numerical values, after that I add a random number with every ASCII value. By doing this the ASCII code will change thus the characters also.


To decrypt it we must know the number I added with the original ASCII code. So here we can call it KEY i.e. the number. So to get the original code we need to subtract the same number from the encrypted ASCII code. Now we will get the original ASCII code thus the original character set.


THE PROGRAM:-



#include .<<stdio.h>>.

#include .<<conio.h>>.

main ()

{

char a[100], b[100], c[100] ; //* Declaring the Variables

int i, x;

clrscr();

for(i=0;i<=100;i++) //* Setting the value of variables to zero

{

a[i] = b[i] = c[i] = 0; /*

}

printf("Enter a String:-"); //* Getting the String.

gets(a);

printf("\n");

printf("Enter a Number:- "); //* Getting the Key

scanf("%d", &x);

for(i=0; a[i]!='\0'; i++)

{

b[i] = a[i] + x; //* Adding the number to ASCII (ENCRYPTION)

c[i] = b[i] - x; //* Subtracting the number from ASCII (DECRYPTION)

}

clrscr();

printf("\n");

puts("Encrypted form of your string is :- ");

printf("\n");

puts(b); //* Showing the Encrypted Data

printf("\n");

puts("Decrypted form of your string is :-");

printf("\n"); //* Showing the Decrypted Data

puts(c);

getch();

}


And here is the OUTPUT :-

Click On the Picture To See Learge Image.


Here is a trick to add your name in place of AM and PM beside time in the taskbar.It's simple and exciting.Start -> Control Panel -> Regional and Language option -> Customize (beside English US) -> Go to TIME tab -> Change AM symbol and PM symbol from AM and PM to your name -> Apply -> Ok ...IS it changed ??? May be not ...Now go to time in taskbar and Double Click it to open "Date and time property" ...Look at the place where time changes in digital format i.e. 02:47:52 AM , click to arrow to chage the AM or PM by selecting and press arrow. It will Show your name Apply -> OK.

Here’s a cheap trick to amuse yourself when you get bored.
Open a command prompt (Start, Run, cmd, OK) and enter the following command:

title yourname

Press enter

then check out the title bar of the command window.


Did you know that you can watch movies in paint ? But u can't do anything(Just watch it when its playing in Winamp... hope no use other than just experimenting..)

Here's what you gotta do :

1.Open your favourite movie player and play the movie in whichever movie player you have

2.Hit "PrintScreen" key, keep playing the movie in the player, dont stop it.

3.Open MsPaint.

4.Select "Edit>Paste" Or Hit "CTRL+V"

You can watch movies in Paint!

But there are no Pause, Next, Previous, Stop etc. buttons

First create a new folder somewhere on your hard drive
when you name it hold down "Alt" and press "0160" this will create an invisible space so it will apper as if it has no name.Then right click and select "Properties". Select the tab "coustimize" and select "change icon". Scroll along and you should see a few blank spaces. Click on any one and click ok.

works only with numpad keys. So wont work on laptops.

Lock a folder without any software
Suppose you want to lock the folder games in d: which has the path D:\games.In the same drive create a text file and type

ren games games.{21EC2020-3AEA-1069-A2DD-08002B30309D}

Now save this text file as loc.bat

create another text file and type in it

ren games.{21EC2020-3AEA-1069-A2DD-08002B30309D} games

Now save this text file as key.bat

Now you can see two batch files loc and key. Press loc and the folder games will change to control panel and you cannot view its contents. Press key and you will get back your original folder.

try this out!!!!!!!

Your Ad Here