如何从 RSA 公钥获取私钥?

发布于 2024-12-17 07:41:12 字数 278 浏览 4 评论 0原文

是否可以获取 RSA 加密的私钥:

Public key:
n=14471312083473289027
e=17

我发现:

p=2612029591
q=5540255797

现在,我如何找到 d??

这是我获取描述的地方

Is is possible to get the private key for RSA encryption given:

Public key:
n=14471312083473289027
e=17

I found out that:

p=2612029591
q=5540255797

Now, how do I find d??

This is where I got the description from

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

迷乱花海 2024-12-24 07:41:12

私钥是一个整数d,使得e*d = 1同时对p-1q-1取模。您链接到的问题的第二个答案(获得超过 30 票赞成的答案)中给出了详细信息。

Private key is an integer d such that e*d = 1 modulo both p-1 and q-1. Details are given in the second answer (the one with more than 30 upvotes) to the question you link to.

情何以堪。 2024-12-24 07:41:12

RSA实践者:

e.d=1+k.@n
where k=1,e=17,n=14471312083473289027;

找到n的数据类型,你将得到d ans!


class temp{
    public static void main(String[] args){
    int d,e,inc=1;
    datatype n=14471312083473289027;
    e=17;
    n=60;

        do{
            d=(1+(inc*n))%e;
            inc++;
        }while(d!=0);
        System.out.println(inc);

    }
}

得到输出后,将 inc 添加到以下公式中:
然后ans=[((inc-1)*k)+1]/e;

RSA Practitioner:

e.d=1+k.@n
where k=1,e=17,n=14471312083473289027;

find the dataype for n, you will get d ans!


class temp{
    public static void main(String[] args){
    int d,e,inc=1;
    datatype n=14471312083473289027;
    e=17;
    n=60;

        do{
            d=(1+(inc*n))%e;
            inc++;
        }while(d!=0);
        System.out.println(inc);

    }
}

After getting output, add inc to following formula:
then ans=[((inc-1)*k)+1]/e;

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文