We are given n (public modulus) where $n=pq$ and $e$ (encryption exponent) using RSA. Then I was able to crack the private key $d$, using Wieners attack. So now, I have $(n,e,d)$. My question: is there a way to calculate p and q from this information? If so, any links and explanation would be much appreciated!
2026-04-02 10:47:23.1775126843
Computing p and q from private key
1.1k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in NUMBER-THEORY
- Maximum number of guaranteed coins to get in a "30 coins in 3 boxes" puzzle
- Interesting number theoretical game
- Show that $(x,y,z)$ is a primitive Pythagorean triple then either $x$ or $y$ is divisible by $3$.
- About polynomial value being perfect power.
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Reciprocal-totient function, in term of the totient function?
- What is the smallest integer $N>2$, such that $x^5+y^5 = N$ has a rational solution?
- Integer from base 10 to base 2
- How do I show that any natural number of this expression is a natural linear combination?
- Counting the number of solutions of the congruence $x^k\equiv h$ (mod q)
Related Questions in DISCRETE-MATHEMATICS
- What is (mathematically) minimal computer architecture to run any software
- What's $P(A_1\cap A_2\cap A_3\cap A_4) $?
- The function $f(x)=$ ${b^mx^m}\over(1-bx)^{m+1}$ is a generating function of the sequence $\{a_n\}$. Find the coefficient of $x^n$
- Given is $2$ dimensional random variable $(X,Y)$ with table. Determine the correlation between $X$ and $Y$
- Given a function, prove that it's injective
- Surjective function proof
- How to find image of a function
- Find the truth value of... empty set?
- Solving discrete recursion equations with min in the equation
- Determine the marginal distributions of $(T_1, T_2)$
Related Questions in PRIME-NUMBERS
- New prime number
- Confirmation of Proof: $\forall n \in \mathbb{N}, \ \pi (n) \geqslant \frac{\log n}{2\log 2}$
- How do I prove this question involving primes?
- What exactly is the definition of Carmichael numbers?
- I'm having a problem interpreting and starting this problem with primes.
- Decimal expansion of $\frac{1}{p}$: what is its period?
- Multiplying prime numbers
- Find the number of relatively prime numbers from $10$ to $100$
- A congruence with the Euler's totient function and sum of divisors function
- Squares of two coprime numbers
Related Questions in FACTORING
- Roots of a complex equation
- For any natural numbers a, b, c, d if a*b = c*d is it possible that a + b + c + d is prime number
- How can I calculate the remainder of $3^{2012}$ modulo 17?
- The complex equation $x^3 = 9 + 46i$ has a solution of the form $a + bi$ where $a,b\in \mathbb Z$. Find the value of $a^3 + b^3$
- Conversion factor
- How do I find roots of the 3rd order polynomial?
- How to find algorithm for integer factorization if the prime factorization of the integer is given?
- Define a binary operation * on the real numbers as $x * y=xy+x+y$ for all real numbers x and y.
- Computing $\lim_{x \to 1}\frac{x^\frac{1}{5}-1}{x^\frac{1}{6} -1}$
- How do I find the quotient of the division of $x^{1993}+x^2+1$ by $x^2+x+1$?
Related Questions in CRYPTOGRAPHY
- What exactly is the definition of Carmichael numbers?
- What if Eve knows the value of $S$ in digital signiture?
- Relative prime message in RSA encryption.
- Encryption with $|K| = |P| = |C| = 1$ is perfectly secure?
- Cryptocurrency Math
- DLP Relationship of primitive roots $\pmod{p}$ with $p$ and $g$
- Hints to prove $2^{(p−1)/2}$ is congruent to 1 (mod p) or p-1 (mod p)
- Period of a binary sequence
- generating function / stream cipher
- RSA, cryptography
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
If it is valid RSA, then $ L = ed-1$ is a multiple of the Carmichael function $\lambda(n) = \mathrm{lcm}(p-1, q-1)$.
In the solutions to exercise 18.12 (ii) from J. v. zur Gathen, J. Gerhard, Modern computer algebra Modern computer algebra, 2nd ed. (2003), you find ALGORITHM 18.16 Special integer factorization. This randomized algorithm computes the set of prime divisors of an squarefree odd integer $N \ge 3$, given a multiple $L \in \mathbb{N}$ of $\lambda(N).$
You can get the solution manual to selected exercises from the authors site, it includes the pseudo code for Alg. 18.16.
If you are using CRT-RSA you can recover p,q from n,e,dp (dp is CRT exponent of p) by an algorithm from S. Maitra, S. Sarkar: Polynomial-Time Equivalence of Computing the CRT-RSA Secret Key(s) and Factoring (http://eprint.iacr.org/2009/062)
Edit: As Jyrki Lahtonen suggested, here are the main ideas from MCA Algorithm 18.16:
Write $L=2^k m, k \ge 1$ with odd $m$. Choose a random $a \in [2,N-2]$. If $\gcd(a,N) \ne 1 $ you have found a factor by accident. Otherwise compute $b_0=a^m \pmod N$. If $b_0=1 \pmod N$, choose another $a$. Otherwise compute $b_{i+1} = b_i^2 \pmod N$ for $i=0\dots k$. Compute $g=\gcd(b_j,N)$ where $j$ is maximum index with $b_j\ne 1 \pmod N$. If $g\ne 1$ and $g \ne N$ it is a non-trivial factor, otherwise choose another $a$.