Skip to content

Demo example of using go ECDH-ES with EC key types: P-256, P-384 and P-521 and OKP key type : X25519 for generate key pair and get shared key.

Notifications You must be signed in to change notification settings

parviz-mv/go-ecdh-es-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Go crypto ECDH-ES example of generate key pair and get shared key

Demo example of using go ECDH-ES with EC key types: P-256, P-384 and P-521 and OKP key type : X25519 for generate key pair and get shared key.

Installation

Before start you need to clone this repository:

git clone [email protected]:parviz-mv/go-ecdh-es-example.git

Usage

For run example in root directory of the cloned repository in terminal run this command :

go run .

Also, you can run with special curve :

go run . -curve P-256  // variants: P-256, P-384 , P-521 and X25519

This project created for further use in react native via gomobile. You can also use this example in own projects.

About

Demo example of using go ECDH-ES with EC key types: P-256, P-384 and P-521 and OKP key type : X25519 for generate key pair and get shared key.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages