← Quiz: Cryptography Basics: all 10 questions
Quiz: Cryptography Basics · Question 4 of 10
What does this print? (code)
What does this print?
p, q, e = 5, 11, 3
n, phi = p * q, (p - 1) * (q - 1)
d = pow(e, -1, phi)
print(n, phi, d)
- A.55 40 3
- B.55 40 27
- C.55 55 27
- D.16 40 27
Answer & explanation
Correct answer: 55 40 27
n = 55, φ = 4 × 10 = 40, and 3 × 27 = 81 = 2 × 40 + 1, so d = 27.
Can you get the rest right without peeking?
Take the timed Quiz: Cryptography Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →