Skip to content

Extract the modulus and public exponent from an RSA private key in PEM format.

License

Notifications You must be signed in to change notification settings

roelvandersteen/rsa-public-key-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSA Public Key Extractor

This is a small .NET Core CLI tool that extracts the modulus and public exponent from an RSA private key in PEM format.

Usage

Prerequisites

Running the Tool

  1. Clone this repository to your local machine:
git clone https://github.com/roelvandersteen/rsa-public-key-extractor.git
  1. Navigate to the project directory:
cd rsa-public-key-extractor/src/PublicKeyExtractor
  1. Build the project:
dotnet build
  1. Run the tool with the path to your private key file:
dotnet run -- <private_key_file.pem>

Replace <private_key_file.pem> with the path to your RSA private key file in PEM format.

Example

dotnet run -- private_key.pem

This will output the base64-encoded modulus and public exponent extracted from the private key.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Extract the modulus and public exponent from an RSA private key in PEM format.

Resources

License

Stars

Watchers

Forks

Languages