Skip to content

tuanta7/rsa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

RSA CLI Tool

A command-line utility for RSA key conversion and manipulation.

Overview

RSA-Tools provides easy-to-use commands for converting RSA keys between different formats, including PEM, DER, and JWK ( JSON Web Key). This tool is particularly useful for developers working with authentication systems, cryptography, or security applications.

Installation

go install https://github.com/tuanta7/rsa@latest

Or clone and build from source:

git clone https://github.com/tuanta7/rsa@latest
cd rsa
go build -o rsa .

Usage

Supported Formats

  • DER (PKCS#1)
  • PEM (PKCS#1)
  • JWK (JSON Web Key)

Key Generation

# Generate a 2048-bit RSA key pair
rsa generate --bits 2048 ./keys

Convert RSA Keys

Convert between different key formats:

# Convert PEM to JWK
rsa convert --output-format jwk --key-file private.pem

# Convert DER to PEM
rsa convert --output-format pem --input public.der

TODO

  • Support PKCS#8 format
  • Add key validation commands
  • Implement RSA encryption/decryption

Cobra Debug Tutorial

About

๐Ÿ”‘ Go command-line tool for working with RSA keys

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published