Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ius/rsatool
rsatool can be used to calculate RSA and RSA-CRT parameters
https://github.com/ius/rsatool
Last synced: 2 months ago
JSON representation
rsatool can be used to calculate RSA and RSA-CRT parameters
- Host: GitHub
- URL: https://github.com/ius/rsatool
- Owner: ius
- License: bsd-2-clause
- Created: 2012-01-02T15:44:05.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-03-22T22:32:55.000Z (about 2 years ago)
- Last Synced: 2024-01-24T20:43:56.363Z (5 months ago)
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 1,049
- Watchers: 23
- Forks: 220
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-ctf - RSATool - Generate private key with knowledge of p and q. (Crypto)
- awesome-ctf-resources - RSATool - Tool to to calculate RSA and RSA-CRT parameter. (Cryptography)
- awesome-stars - ius/rsatool - rsatool can be used to calculate RSA and RSA-CRT parameters (Python)
- awesome-stars - ius/rsatool - rsatool can be used to calculate RSA and RSA-CRT parameters (Python)
- awesome-ctf - RSATool - Generate private key with knowledge of p and q. (Crypto)
- awesome-ctf - RSATool - Generate private key with knowledge of p and q. (Crypto)
- awesome-hacking-lists - rsatool - rsatool can be used to calculate RSA and RSA-CRT parameters (Python (1887))
- awesome-CTF - RSATool - Generate private key with knowledge of p and q (Crypto)
- awesome-hacking-lists - ius/rsatool - rsatool can be used to calculate RSA and RSA-CRT parameters (Python)
- awesome-hacking-lists - rsatool - rsatool can be used to calculate RSA and RSA-CRT parameters (Python)
README
Description
-----------
rsatool calculates RSA (p, q, n, d, e) and RSA-CRT (dP, dQ, qInv) parameters given
either two primes (p, q) or modulus and private exponent (n, d).Resulting parameters are displayed and can optionally be written as an OpenSSL compatible DER or PEM encoded RSA private key.
Requirements
------------* python v3.7+
* [pyasn1][1]
* [gmpy2][2]Usage examples
--------------Supplying modulus and private exponent, PEM output to key.pem:
python rsatool.py -f PEM -o key.pem -n 13826123222358393307 -d 9793706120266356337
Supplying two primes, DER output to key.der:
python rsatool.py -f DER -o key.der -p 4184799299 -q 3303891593
[1]: http://pypi.python.org/pypi/pyasn1/
[2]: http://pypi.python.org/pypi/gmpy2/