Skip to content

tezli/keygen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keygen

build codecov

Simple tool for genrating crytographic keys.

Installation

For the gophers

go install github.com/tezli/keygen

For eveyone else

curl -so "https://github.com/tezli/keygen/releases/download/v0.0.1/keygen-$(uname -s | tr A-Z a-z)-$(uname -m | sed s/x86_/amd/g)" /usr/local/bin/keygen && chmod +x /usr/local/bin/keygen

Usage

Creating an ECDSA key

keygen ecdsa --curve P521 --out ecdsa_key

or short:

keygen ecdsa -c P521 -o ecdsa_key

Add the -p flag to create a public key also.

Creating a RSA key

keygen rsa --bits 4096 --out rsa_key

or short:

keygen ecdsa -b 4096 -o rsa_key

Creating key with a corresponding public key

keygen rsa -p -b 4096 -o rsa_key

will generate:

rsa_key
rsa_key.pub

About

A generator for cryptographic keys

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •