Determine RSA keys (public and private) given two prime number character strings (p and q) - MATLAB Cody - MATLAB Central

Problem 44956. Determine RSA keys (public and private) given two prime number character strings (p and q)

Difficulty:Rate

Given two prime number character strings (p and q), generate the RSA public and private keys (n and d) with e = 65537. The more difficult part is doing this without the use of symbolic numbers. Example: p = '3355335697481001330501721', q = '5955344080483688912855719' n='19982178584029090861856118769095354822153154192399' d='3270348772331599380262578849367006078599068947553'

https://simple.wikipedia.org/wiki/RSA_algorithm

Solution Stats

11.51% Correct | 88.49% Incorrect
Last Solution submitted on Mar 23, 2025

Problem Comments

Solution Comments

Show comments
Who Deserves Your Praise? Discover the New Contribution Widget!
...
We are excited to announce another update to our Discussions area: the...

Problem Recent Solvers13

Suggested Problems

More from this Author56

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page