Numbers, Units & Calculators
Modular Exponentiation Calculator
Calculate a result with Modular Exponentiation from the values you enter. Enter the required values, adjust the options, and review the calculated result.
This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.
Modular Exponentiation Calculator computes Base^Exponent modulo Modulus.
It returns 4 because 4³ mod 5 equals 4. The calculation runs in your browser. Processing runs in the browser.
Instructions
- Provide values for this tool.
- Enter base, exponent, and modulus.
- Check integer values.
- Compare the result with the stated modulus.
Example
Input: base = 4; exponent = 3
Settings: Modular Exponentiation Calculator: Base: 4; exponent: 3; modulus: 5.
Result: It returns 4 because 4³ mod 5 equals 4.
Limits
- Modular Exponentiation Calculator: A zero modulus is invalid.
- Modular Exponentiation Calculator: Blank base or exponent falls back to Input.
- Modular Exponentiation Calculator: It does not implement a full RSA workflow.