Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paulshpilsher/genrsa

RSA keys generator written in Go
https://github.com/paulshpilsher/genrsa

cryptography go pem publickey rsa

Last synced: 2 days ago
JSON representation

RSA keys generator written in Go

Awesome Lists containing this project

README

        

# genrsa

RSA private and public keys generator written in Go

## 📝 Table of Contents

- [Build](#build)
- [Usage](#usage)
- [Example](#example)
- [Built Using](#built_using)
- [Authors](#authors)
- [Acknowledgments](#acknowledgement)

## Build

```bash
make build
```

## Usage

genrsa [--bits number] [--output filename]
  options:
    --bits: optional number of bits. default 4096
    --output: optional output file name. default "rsa"

Private key will be written to output file name with extension .pem
Public key will be written to output file name with extension .pub

## Example

Generating a RSA keys with bit size of 4096 to files my-key.pem and my-key.pub

```bash
./genrsa --bits 4069 --output my-key
```
## Built Using

- [Go](https://go.dev/) - Server Framework

## Authors

- [@PaulShpilsher](https://github.com/PaulShpilsher) - Software engineer and digital nomad

## Acknowledgements

- Inspiration ["Simple Made Easy" - Rich Hickey (2011)](https://www.youtube.com/watch?v=SxdOUGdseq4)