modPow Encryption working