0Pricing
Cryptology Academy · Lesson

RSA Key Generation Step by Step

Generate p, q, n, e, d and understand each parameter's role.

Welcome

In this lesson we generate an RSA key pair from scratch, following every mathematical step from prime selection to key parameters.

Step 1: Choose Two Large Primes

Choose large random primes p and q. In production: p,q ≥ 2^1023 (for 2048-bit RSA). For demonstration: p=61, q=53.

All lessons in this course

  1. Public-Key Cryptography Concepts
  2. RSA Key Generation Step by Step
  3. RSA Encryption & Decryption Math
  4. RSA Real-World Use Cases & Key Sizes
← Back to Cryptology Academy