0

RSA Algorithm using C

RSA Algorithm using C Language

You can also Download the Program code and corresponding output....
To Download the program in correct format
CLICK HERE 



#include
#include

int phi,m,n,e,d,c,flag;
int check()
{
int i;
for(i=3;e%i==0&φ%i==0;i+2)
{
flag=1;
return;
}
flag=0;
}


int encrypt()
{
   int i;
  c=1;
   for(i=0;i
   c=c*m%n;
     c=c%n;
   printf("\n\t Encrypted keyword is %d",c);
   return c;
}

void decrypt()
{

   int i;
   m=1;
   for(i=0;i
    m=m*c%n;
   m=m%n;
   printf("\n\t decrypted keyword is %d",m);
}
void main()
{
   int p,q,s;
   clrscr();
   printf("enter two relatively prime numbers");
scanf("%d%d",&p,&q);
   n=p*q;
  phi=(p-1)*(q-1);
  printf("\n\t f(n)\t=%d",phi);
   do
   {
   printf("\n\n Enter e\t");
     scanf("%d",&e);
     check();
  }while(flag==1);
   d=1;
  do
   {
   s=(d*e)%phi;
     d++;
   }while(s!=1);
   d=d-1;
  printf("\n\t Public key{ %d,%d}",e,n);
printf("\n\t Private key{%d,%d}",d,n);
  printf("\n\n Enter the plain text\t");
  scanf("%d",&m);
  encrypt();
  decrypt(c);
   getch();
}

0

Shutdown Windows XP in Different ways

There are so many different ways to turn off your Windows XP computer, let's look at some of them:

1)The standard approach - click the Start Button with your mouse, then select the Turn Off menu and finally click the Turn Off icon on the Turn Off computer dialog. blink.gif

2)Press Ctrl+Esc key or the Win key and press u two times - the fastest approach.


0

Gesture 3D Cube

gesture-cube-3d-interface.jpgGesture-controlling-cube-450x288.jpg

Gesture Cube uses 3D spatial movement tracking to help transform navigating a device into a magical intuitive experience.The underlying GestIC technology detects your hand`s approach and movements-your favourite apps and media at a wave of your hand.
0

Open Office 2010

The decade-old Open Office was the free and Open Source replication to Microsoft`s Office that has enriched it self in the office productivity suite segment.Originally a proprietary software application that was Open-Sourced  by Sun Micro systems,  Open Office has come a long way ,with the release of its new-improved version 3.2.Today, having crossed 300 million downloads-a third of this community project is among the most successful  stand-alone Open Source product.


0

Hidden Programs In Windows XP

1) Private Character Editor

This program is for designing icons and Characters(Alphapet)
Click :Start Menu
Then :Run
Type :EUDCEDIT



2) iExpress

This Program is for converting your files to EXECUTABLE files
Click : Start
Then : Run
Type : iexpress



3) Disk Cleanup

This program used for cleaning harddisk to offer space
cl!ck : start
Then : run
type : cleanmgr



4) Dr Watson

This program Is for repairing problems in Windows
cl!ck : start
Then : run
type : drwtsn32