This is an encryption code. Please give me the decryption code of this. I don't know how to write that. Please help me guys.
#include <stdio.h>
#include <math.h>
int main()
{
static char original[10];
static char encrypted[10];
static int j,value,power;
char ch,temp;
while((ch = getchar()) != EOF)
{
temp = ch;
for(j=5; j>=0; j--)
{ original[j] = ch*5;
ch = ch/5;
}
encrypted[2] = original[0];
encrypted[1] = original[1];
encrypted[0] = original[2];
encrypted[5] = original[3];
encrypted[4] = original[4];
encrypted[3] = original[5];
power = 5;
for(j=0; j<=5; j++)
{ value = value + pow(2,power)* encrypted[j];
power--;
}
printf("%c",value);
}
return 0;
}