Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 49
Image: ubuntu2004
p=next_prime(round(random()*10^211)) q=next_prime(round(random()*10^211))
N=p*q R= (p-1)*(q-1)
e = 19 gcd(R,e)
1
d = (Mod(e^(-1),R))
d
9388523096337798053663247023622477008650095819144977838583453020342967533930179266303435330888696808640418527281423594820981657675038480539191184064830765668043814509021287695809285457409798369225809922469034481177107069426796892327619733286005667354319825956282385596168777395488361626240191067469462223006419930090998389649607576598583406483696838892864323965046540144286628059172226636912335061745382490776179938033459
testm = 1265 testc = testm.powermod(e,N)
testd = testc.powermod(d,N) testd
1265
︠df5fd223-052f-44d0-a870-26a4d586e111︠