Skip to content

Minimalistic Secp256r1 ECDSA/ECDH Tool written in Go

License

Notifications You must be signed in to change notification settings

pedroalbanese/ecdsa-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ECDSA Secp256r1

Minimalistic ECDSA/ECDH Tool written in Go

Usage:

 -derive
       Derive shared secret key.
 -key string
       Private/Public key.
 -keygen
       Generate keypair.
 -pub string
       Remote's side Public key.
 -sign
       Sign with Private key.
 -signature string
       Signature.
 -verify
       Verify with Public key.

Examples:

Asymmetric keypair generation:

./ecdsa -keygen

Shared key negociation (ECDH):

./ecdsa -derive -key $prvkey -pub $pubkey

Sign a file (ECDSA):

./ecdsa -sign -key $private < file.ext > sign.txt
sign=$(cat sign.txt)
./ecdsa -verify -key $public -signature $sign < file.ext

License

This project is licensed under the ISC License.

Copyright (c) 2020-2021 Pedro Albanese - ALBANESE Lab.

Releases

No releases published

Packages

No packages published

Languages