Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 911675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:14:59+00:00 2026-05-15T17:14:59+00:00

For RSA, how do i calculate the secret exponent? Given p and q the

  • 0

For RSA, how do i calculate the secret exponent?

Given p and q the two primes, and phi=(p-1)(q-1), and the public exponent (0x10001), how do i get the secret exponent ‘d’ ?

I’ve read that i have to do: d = e-1 mod phi using modular inversion and the euclidean equation but i cannot understand how the above formula maps to either the a-1 ≡ x mod m formula on the modular inversion wiki page, or how it maps to the euclidean GCD equation.

Can someone help please, cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:15:00+00:00Added an answer on May 15, 2026 at 5:15 pm

    You can use the extended Euclidean algorithm to solve for d in the congruence

    de = 1 mod phi(m)
    

    For RSA encryption, e is the encryption key, d is the decryption key, and encryption
    and decryption are both performed by exponentiation mod m. If you encrypt a message a
    with key e, and then decrypt it using key d, you calculate (ae)d = ade mod m. But
    since de = 1 mod phi(m), Euler’s totient theorem tells us that ade is congruent
    to a1 mod m — in other words, you get back the original a.

    There are no known efficient ways to obtain the decryption key d knowing only the
    encryption key e and the modulus m, without knowing the factorization m = pq, so
    RSA encryption is believed to be secure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to generate an RSA Public Key given an APIs modulus and exponent. I'm
What I understand about RSA is that Alice can create a public and a
How can i create RSA encryption public key from 'Modulus' and 'Exponent' in iOS.?
I have a customer supplied RSA signature verification API description that takes the parameters
I have my RSA public and private keys (all of p,q,e,n,d) in PEM format.
I want to calculate a b mod n for use in RSA decryption. My
I was wondering whether RSA can be cracked given: The public key A plaintext
I have the byte array of the RSA Public Key. I found on the
In RSA, I understand that if a data is encrypted using public key, corresponding
I have a RSA cipher text c , the public key (e,n) . (where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.