This repo does 2 things
-
Generating the public-private key-pair
-
Running the demo application
-
Generating the public-private key-pair In order to run the public-private file, you should use Docker (if you have golang installed, you can run directly)
Using Docker Go to the encryption folder, and run the following command
docker build -t encryption . docker run encryption
This will generate the public-private key pair in the console
Using Golang (if you have golang installed) Go to the encryption folder, and run the following command
go run public-private-key-generation.go
-
Running the demo application
- Using Docker (Easier) :
Make sure that you have docker installed, and docker daemon running
Stay in the root folder, and run the following command
This will start the server at port 8080. You can access the server at http://localhost:8080
docker build -t demo_app . docker run -p 8080:8080 demo_app
- Using Golang :
Make sure that you have golang installed
Stay in the root folder, and run the following command
This will start the server at port 8080. You can access the server at http://localhost:8080
go run main.go
- Using Docker (Easier) :
Make sure that you have docker installed, and docker daemon running
Stay in the root folder, and run the following command