Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 1.85 KB

README.md

File metadata and controls

70 lines (49 loc) · 1.85 KB

Example Usage

☝️ Table of Contents

📦 Dependencies

  • Golang with GoFiber v2
  • Zerolog - Log Management

⚒ Structure

  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
Loading

Alternative mermaid diagrams Alternative mermaid diagrams

🏷 Versions

v0.2.0

  • Using 2-key pair for better securities

v0.1.0

⚙ Get Started

Step 1: Initialize

  go mod tidy

Step 2: Go run main.go

  go run main.go

Step 3: Try to call: POST /api/example API

curl --request POST --url http://localhost:8000/api/example --data '{"payload": "FDp1Dl31zGx5nRXFNKihB+k3ly/L7HI9tlHycbKVRwhaf3RRdyFGviuntEZqst0/"}'
{"payload":"bV5rjs84VS6onHizxuVPAg=="}

Tips: "Burn and Learn" with