Hello,
I am having a problem for coping the string into a 2d array..
Also if the length of the string is more than 16 bytes how to continue to read till end of string..
Can anyone help..
int encrypt()
{
string text = "Encryption";
char b1[4][4];
text.length();
strcpy(text,b1); // problem how to copy the string to the 2d array
// also if the string length is more than 16 bytes long how to continue read in chunks of 16 bytes till end of string
for ( int j=0; j<BC; j++)
for ( int i=0; i < 4; i++)
{
a[i][j] = b1[j][i];
}
Encrypt(a, rk);
return 0;
}