RSA Key Info
RSA Key Info is a Python script that extracts information from a given RSA public key file. It can display various details about the key, such as its length, modulus, and prime factors, as well as generate a private key from the extracted modulus.
This script was inspired by the Breaking RSA box from TryHackMe.
Installation
To install RSA Key Info, you can use pip:
pip install rsa-key-info
Usage
rsa_key_info.py -k <public_key_file> [-l] [-m] [-f] [-p]
-k,--key: Path to the RSA public key file (required).-l,--length: Display the length of the RSA key.-m,--modulus: Display the modulus (n) of the RSA key.-f,--factorize: Factorize the modulus into two prime numbers (p and q).-p,--private: Generate a private key using the extracted modulus.
Example usage:
rsa_key_info.py -k id_rsa.pub -l -m -f -p
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgements
This script utilizes the pycryptodome library for RSA key handling.
Metadata
Release files for rsa-key-info 24.2.24.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rsa_key_info-24.2.24.2.tar.gz | 4.3 kB | Without provenance | Details for rsa_key_info-24.2.24.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rsa_key_info-24.2.24.2-py3-none-any.whl | Python 3 | none | any | Details for rsa_key_info-24.2.24.2-py3-none-any.whl |
Total release size: 9.4 kB
Release files / rsa_key_info-24.2.24.2.tar.gz
| Download URL | rsa_key_info-24.2.24.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca0abcd42658b5208ae381406eb2f3c9ac973da0c5aa9695d3bd276e76f52d0e
|
|
BLAKE2b-256 checksum How to use checksums |
efc2865b893484b88e936684a72e3030bad22d2c942a949f4ef7d06cc1c43438
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Release files / rsa_key_info-24.2.24.2-py3-none-any.whl
| Download URL | rsa_key_info-24.2.24.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ea1f1bf20defa57aa09dd8d9d9f3f55e494dda08020124451896b096609b0b1
|
|
BLAKE2b-256 checksum How to use checksums |
85dbb6780780ff9b24a194364cb0e5d88eedd4c5b73f93cb41067f18f17efb83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Security for rsa-key-info 24.2.24.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.