Blazing fast modular exponentiation for cryptography learners and pros using efficient binary exponent algorithms with big integer support automatic method selection live validation instant results clear step explanations copy friendly output and accessibility features built in to help you verify RSA style computations number theory problems and programming challenges with confidence reliably every time
This tool computes a^e mod m
using fast power. In auto mode it selects the best available big integer engine.
The trace uses the right-to-left method which squares the base each iteration and multiplies into the result when the current exponent bit is one.
while e > 0: if e is odd: result = (result * base) mod m base = (base * base) mod m e = floor(e / 2)
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.