Fix for the rsa encryption algorithm.  Had to swap to using modular exponentiation to avoid integer overflow.