void encrypt() { long int pt, ct, key = e[0], k, len; i = 0; len = strlen(msg); while (i != len) { pt = m[i]; pt = pt - 96; k = 1; for (j = 0; j<key;j++) { k=k*pt; k=k%n; } temp[i] = k; ct = k + 96; en[i] = ct; i++; } en[i] = -1; printf("\n THE ENCRYPTED MESSAGE IS\n"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)