Fast and simple modular exponentiation frunction written in c To use, simply add modexpo.h and modexpo.c to your source files
Note: For extremely large inuputs, the result will be incorrect because an overflow occur. This should not be a problem for bases, exponents, and divisors smaller than a few billion or so.