gpt4 book ai didi

security - 如何从私钥中提取指数和模数?

转载 作者:行者123 更新时间:2023-12-03 06:32:44 26 4
gpt4 key购买 nike

有没有办法使用 openssl 提取私钥的模数和指数?如果有办法请告诉我。

最佳答案

是的。使用 -text 选项 openssl rsa是一种方法:

$ openssl genrsa 2048 > dummy.key
Generating RSA private key, 2048 bit long modulus
..............+++
....................+++
e is 65537 (0x10001)
$ openssl rsa -in dummy.key -noout -text
Private-Key: (2048 bit)
modulus:
00:c3:21:46:32:f5:d8:89:c5:bb:bd:a7:4a:14:32:
[...]
ea:5d:d3:20:bd:d7:5d:36:1e:45:28:f3:e3:dd:0b:
d1:f9
publicExponent: 65537 (0x10001)
privateExponent:
55:4d:74:8c:ce:a0:cd:09:de:1a:f8:c9:0f:af:4f:
ed:a1:92:89:89:86:4f:cb:b2:f6:aa:60:e7:05:a6:
[...]

关于security - 如何从私钥中提取指数和模数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10751364/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com