blaine <[EMAIL PROTECTED]> writes: > A = (G ** a) % P # G^a mod P
Think of how large the intermediate result G**a will be. That should explain why it's taking so long. So figure out what Java's modPow function must be doing, and write something similar. Or, see the docs for python's built-in pow function. -- http://mail.python.org/mailman/listinfo/python-list