Message plain text
Values from Bob
Bob's n
Bob's e
Me mod n =
(mod
)
Encrypt
B
Bob
X
User: Alice
Key preparation
p
Submit
q
Submit
n
Submit
Φ(n)
Submit
e
Submit
d
Submit
Qd mod n =
(mod
)
Decrypt
(Converted)
A
Alice
X
User: Bob
Values from Bob
Bob's n
Bob's e
Power Mod Calculator
Qd mod n =
(mod
)
Decrypt
(Converted)
B
Bob
X
A
Alice
X
User: Eve
Working in a group
1. Choose someone to be Alice and someone to be Bob. If there are three of you, the other person will be Eve.
2. Bob should choose n and e, and read them to Alice.
3. Alice should encrypt a message with the n and e provided. Read this to Bob.
4. Bob should decrypt the message, using his phi and d values.
5. Eve should try to work out what the message was, using only the numbers overheard.
Settings
Restart the activity with these settings
In the current window
In a resizable pop up window
Public Key Practice