Aurel Page on Tue, 21 Nov 2023 14:44:16 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: sqrt(x,n) for non-prime n?


On 21/11/2023 13:03, hermann@stamm-wilbrandt.de wrote:
So implementing Kunerth's method is only needed if factoring modulus would take too much time.
If you can compute square roots of arbitrary numbers modulo n, then you can factor n. Indeed, take some x modulo n, compute a square root y of x^2 mod n: then gcd(x-y,n) is a nontrivial factor of n with good probability.

Cheers,
Aurel