Skip to content
04Connected Networks StudioPSUT · Networking and Communication
Connected Networks Studio

CR45 · RSA manual key generation

For distinct odd primes p and q, n=pq and φ(n)=(p−1)(q−1). Choose 1<e<φ(n) with gcd(e,φ)=1. The extended Euclidean algorithm finds d such that e·d≡1 mod φ. Small classroom primes are not secure. p=5, q=11, e=3: n=55, φ=40, 40=13·3+1, so 1=40−13·3 and d=−13 mod 40=27. Verify 3·27 mod 40=1.

Available on another course website

Full content is maintained in IoT Security and Privacy. Configure its deployment URL in course-hosts.js.

Open owning course →

Return to this course catalogue