Well as the title ...
example:
string ss="this is an encrytpion program";
unsigned char temp[32]; //={0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};
temp=ss //that's what i need !
Have converted the string to it's hex representation ..
char string1[64]="yeah working yeah working yeah working yeah working yeah wcccn";
char number;
int k=0;
for(;k<63;k++)
{
sscanf(&string1[k], "%c", &number);
fprintf (f1, "%x", number); //to file
}
but not able to convert that hex array[64] to unsigned char array[32] ...