Giter Club home page Giter Club logo

one-time-pad's Introduction

one-time-pad

Store your keys encrypted for exactly one read

Setup

Install Go

Install Go Packages

go get -d -v ./...

Start Redis & App

docker-compose up --build

When you want to start only redis, execute:

docker-compose up redis

Environment Variables

The server requires the following environment variables to be set:

  • REDIS_DSN: The server address of Redis (e.g. localhost:6379)
  • HTTP_PORT: The port on which the server listens to (e.g. 8080)

How to run the app and develop

go run backend/src/main.go

Debug the app with VS Code by executing the Launch debug script. Simply run the Debug: Select and Start Debugging command and select Launch. Note: You might need to install xcode command line tools (xcode-select --install) to be able to run the debugger on macOS.

Endpoints

  • GET /api/{key}

    Returns the value by the key. Additionally the X-Secret header might be used to decrypt the value.

  • POST /api

    Stores a new value and returns the generated key. Additionally the X-Secret header might be used to encrypt the value.

  • DELETE /api/{key}

    Deletes a key

Links

one-time-pad's People

Contributors

philipheimboeck avatar natterstefan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.