範例
using input field for base
輸入
5Expected answer
JSON6- Base
(empty)- 模數
7- 指數
3
using input field for exponent
輸入
4Expected answer
JSON5- Base
2- 模數
11- 指數
(empty)
base one
輸入
Expected answer
JSON1- Base
1- 模數
1000- 指數
999
basic example (2^10 mod 1000)
輸入
Expected answer
JSON24- Base
2- 模數
1000- 指數
10
crypto-sized numbers (RSA-2048 simulation)
輸入
Expected answer
JSON1- Base
12345678901234567890123456789012345678901234567890- 模數
99999999999999999999999999999999999999999999999999- 指數
0
exponent zero
輸入
Expected answer
JSON1- Base
999- 模數
100- 指數
0
Fermat's Little Theorem (a^(p-1) mod p = 1)
輸入
Expected answer
JSON1- Base
3- 模數
11- 指數
10
hexadecimal input
輸入
Expected answer
JSON256- Base
0x10- 模數
1000- 指數
0x2
large base and exponent
輸入
Expected answer
JSON560583526- Base
123456789- 模數
1000000007- 指數
65537
RSA-like example (small)
輸入
Expected answer
JSON561- Base
123- 模數
1000- 指數
456
参數
| 参數 | 默認值 | 輸入與選項 |
|---|---|---|
| Base | "" | 文本 |
| 模數 | "1" | 文本 |
| 指數 | "" | 文本 |