English 中文(简体)
RSA cryptosystem
原标题:

Hi i am trying to set up an RSA cryptosystem i have all the values except d selected prime numbers: p=1889, q=2003, n=3783667, phi=3779776, e= 61

i got stuck finding d could anyone help me to figure it out?

Setting up an RSA cryptosystem

  • Two large distinct prime numbers p and q are selected, and n = pq and Φ(n) = (p − 1)(q − 1) are calculated.
  • An integer e is selected such that gcd(Φ(n), e) = 1 and the multiplicative inverse d = e^(−1) in ZΦ(n) is calculated, i.e.

    ed ≡ 1 (mod Φ(n)).

  • The numbers p, q, and Φ(n), are then discarded.

  • The pair (e, n) is published as the public encryption key
  • The number d is the secret decryption key.
最佳回答

Here s the algo, step by step, including finding d.
m from the article is your Φ(n).
Now, you try to find a d = (1 + nm) / e, working through values of n until an integer solution for e is found.

Edit: Here you ll find a more detailed explanation of the whole algorithm.

问题回答

暂无回答




相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

MALICIOUS_CODE EI_EXPOSE_REP Medium

I run findbugs against all of my code and only tackle the top stuff. I finally got the top stuff resolved and now am looking at the details. I have a simple entity, say a user: public class User ...

XSS on jsbin.com

Anyone know if jsbin.com implements any protection for XSS or other javascript attacks? I see jsbin links used fairly regularly on sites like this one and I can t find any indication from the site ...

Make md5 strong

Im making a website that will intergrate with game that only support md5 hashing metod (atm). Which ofc is not especially safe anymore. But how could i make it stronger? Should I just generate long ...

Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

热门标签