从已知因子和指数中获取rsa密钥的工具。
rsade的Python项目详细描述
rsade
从已知因素生成rsa密钥的工具。
语法
rsade [-h] [-o [OUT]] [-r] [-s] p q e
positional arguments:
p The first factor of the modulus.
q The second factor of the modulus.
e The exponent.
optional arguments:
-h, --help Show this help message and exit.
-o [OUT], --out [OUT]
The file to output the key to.
-r, --private Output just the private exponent (d) and not the whole
key.
-s, --silent Do not output anything.
示例用法
生成密钥。
rsade 61 53 17
生成密钥,将其写入foo
,并且不打印任何内容。
rsade 61 53 17 -s -o foo
生成私有指数。
rsade 61 53 17 -r
安装
pip install .