long long encrypt(int message,int n,int e)
{
long long s=pow(message,e);
return s%n;
}
When I try this:
printf("%lli",encrypt(65,3233,17));
It prints out this: -2631
Does anyone have any idea how to fix this...To be honest those are small values for now..I think I'll use larger values in the future