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
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers13

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!
Go to top of page