Esempi
using input field for base
Input
5Expected answer
JSON6- Base
(empty)- Modulo
7- Esponente
3
using input field for exponent
Input
4Expected answer
JSON5- Base
2- Modulo
11- Esponente
(empty)
base one
Input
Expected answer
JSON1- Base
1- Modulo
1000- Esponente
999
basic example (2^10 mod 1000)
Input
Expected answer
JSON24- Base
2- Modulo
1000- Esponente
10
crypto-sized numbers (RSA-2048 simulation)
Input
Expected answer
JSON1- Base
12345678901234567890123456789012345678901234567890- Modulo
99999999999999999999999999999999999999999999999999- Esponente
0
exponent zero
Input
Expected answer
JSON1- Base
999- Modulo
100- Esponente
0
Fermat's Little Theorem (a^(p-1) mod p = 1)
Input
Expected answer
JSON1- Base
3- Modulo
11- Esponente
10
hexadecimal input
Input
Expected answer
JSON256- Base
0x10- Modulo
1000- Esponente
0x2
large base and exponent
Input
Expected answer
JSON560583526- Base
123456789- Modulo
1000000007- Esponente
65537
RSA-like example (small)
Input
Expected answer
JSON561- Base
123- Modulo
1000- Esponente
456
Parametri
| Parametro | Valore predefinito | Input e opzioni |
|---|---|---|
| Base | "" | Testo |
| Modulo | "1" | Testo |
| Esponente | "" | Testo |