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.64% Correct | 88.36% Incorrect
Last Solution submitted on Apr 09, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers14

Suggested Problems

More from this Author57

Community Treasure Hunt

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

Start Hunting!