Giter Site home page Giter Site logo

stulzq / dotnetrsa Goto Github PK

View Code? Open in Web Editor NEW
28.0 3.0 7.0 54 KB

DotnetRSA is a .NET Core Global Tool.Dotnet RSA Tool can help you generate xml pkcs1, pkcs8 three kinds of format keys, and supports three types of mutual conversion.

License: MIT License

C# 100.00%
rsa dotnetcore-global-tool

dotnetrsa's Introduction

DotnetRSA | 中文

NuGet

DotnetRSA is a .NET Core Global Tool.Dotnet RSA Tool can help you generate xml pkcs1, pkcs8 three kinds of format keys, and supports three types of mutual conversion.

More https://github.com/natemcmaster/dotnet-tools

Install

Install dotnetrsa as a .NET Core Global tool using the following command:

dotnet tool install -g dotnetrsa

You have it now available on your command line:

dotnetrsa --help

Note: to use CLI tool command you must have .NET Core 2.1 or higher.

Usage

Usage: dotnetrsa [options] [command]

Options:
  -?|-h|--help  Show help information

Commands:
  convert       Convert you keys to xml pkcs1, pkcs8 format.
  gen           Generate xml, pkcs1, pkcs8 keys.

Run 'dotnetrsa [command] --help' for more information about a command.

convert command

This command can convert you keys to xml pkcs1, pkcs8 format.such as xml->pkcs1, xml->pkcs8.

Convert you keys to xml pkcs1, pkcs8 format.

Usage: dotnetrsa convert [arguments] [options]

Arguments:
  KeyFilePath         Required.Secret key file path.

Options:
  -h|--help           Show help information
  -f|--from <format>  Required.Source format.The value must be xml, pkcs1,pkcs8.
  -t|--to <format>    Required.Target format.The value must be xml, pkcs1,pkcs8.
  -k                  Required.Key type.The value must be pri, pub.'pub' represents the public key.
  -o|--output <path>  File output path.If you do not specify it will be output in the current directory.

gen command

This command can generate xml, pkcs1, pkcs8 keys.

Generate xml, pkcs1, pkcs8 keys.

Usage: dotnetrsa gen [options]

Options:
  -h|--help           Show help information
  -f|--format         Required.Gen keys's format.The value must be xml, pkcs1 ,pkcs8.
  -s|--size <int>     Key Size.
  --pem               Pem Format. true of false.
  -o|--output <path>  File output path.If you do not specify it will be output in the current directory.

The DotnetRSA build and conversion key uses the open source project RSAUtil: https://github.com/stulzq/RSAUtil

dotnetrsa's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.