- Golang with GoFiber v2
- Zerolog - Log Management
graph LR;
Request--"{ payload:AES_ENCRYPTED }"-->CipherPayload-Decrypted
CipherPayload-Decrypted--"{ get_field: [firstname, surname] }"-->API
API--"{ firstname: Eren, lastname: Yeager }"-->CipherPayload-Encrypted
CipherPayload-Encrypted--"{ payload:AES_ENCRYPTED }"-->Response
v0.2.0
- Using 2-key pair for better securities
v0.1.0
- Initialized
- API Endpoint for Plaintext
POST
http://localhost:5000/api/example - API Endpoint for Ciphertext
POST
http://localhost:8000/api/example
go mod tidy
go run main.go
curl --request POST --url http://localhost:8000/api/example --data '{"payload": "FDp1Dl31zGx5nRXFNKihB+k3ly/L7HI9tlHycbKVRwhaf3RRdyFGviuntEZqst0/"}'
{"payload":"bV5rjs84VS6onHizxuVPAg=="}